forked from qt-creator/qt-creator
QmlDesigner: Improve warning suppression
Can be removed with never compiler. Change-Id: I3196acfc82e3ab53f0f72dec3b543f27b9bbe2e1 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -51,17 +51,10 @@ public:
|
|||||||
return first.id >= second.id;
|
return first.id >= second.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__GNUC__) && !defined(__clang__)
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
|
||||||
#endif
|
|
||||||
constexpr friend InternalIntegerType operator-(BasicId first, BasicId second)
|
constexpr friend InternalIntegerType operator-(BasicId first, BasicId second)
|
||||||
{
|
{
|
||||||
return first.id - second.id;
|
return first.id - second.id;
|
||||||
}
|
}
|
||||||
#if defined(__GNUC__) && !defined(__clang__)
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
constexpr bool isValid() const { return id > 0; }
|
constexpr bool isValid() const { return id > 0; }
|
||||||
|
|
||||||
|
@@ -8,7 +8,8 @@ if (APPLE)
|
|||||||
set(QmlDesignerPluginInstallPrefix "${IDE_PLUGIN_PATH}/QmlDesigner")
|
set(QmlDesignerPluginInstallPrefix "${IDE_PLUGIN_PATH}/QmlDesigner")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
add_compile_options("$<$<COMPILE_LANG_AND_ID:CXX,Clang>:-Wno-error=maybe-uninitialized>")
|
||||||
|
add_compile_options("$<$<COMPILE_LANG_AND_ID:CXX,GNU>:-Wno-error=maybe-uninitialized>")
|
||||||
|
|
||||||
add_qtc_library(QmlDesignerUtils STATIC
|
add_qtc_library(QmlDesignerUtils STATIC
|
||||||
DEPENDS
|
DEPENDS
|
||||||
|
Reference in New Issue
Block a user