forked from qt-creator/qt-creator
Disable GCC warning for noexcept
GCC >= 6.4 is generating warnings for function signature with noexcept. In C++ 17 noexcept is part of the function signature. But the warning is catching cases where a changed signature is not a problem, because it is a template it self. Task-number: QTCREATORBUG-18959 Change-Id: Ia6fa79c10e16d8c96a53c849ea15dcec94538fbe Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -157,6 +157,8 @@ osx {
|
||||
INSTALL_APP_PATH = $$QTC_PREFIX/bin
|
||||
}
|
||||
|
||||
gcc:!clang: QMAKE_CXXFLAGS += -Wno-noexcept-type
|
||||
|
||||
RELATIVE_PLUGIN_PATH = $$relative_path($$IDE_PLUGIN_PATH, $$IDE_BIN_PATH)
|
||||
RELATIVE_LIBEXEC_PATH = $$relative_path($$IDE_LIBEXEC_PATH, $$IDE_BIN_PATH)
|
||||
RELATIVE_DATA_PATH = $$relative_path($$IDE_DATA_PATH, $$IDE_BIN_PATH)
|
||||
|
||||
@@ -28,6 +28,8 @@ QMAKE_LFLAGS += -fno-merge-debug-strings -fuse-ld=gold
|
||||
CONFIG(release, debug|release):QMAKE_LFLAGS += -Wl,--strip-debug
|
||||
}
|
||||
|
||||
gcc:!clang: QMAKE_CXXFLAGS += -Wno-noexcept-type
|
||||
|
||||
# create fake CppTools.json for the mime type definitions
|
||||
dependencyList = "\"Dependencies\" : []"
|
||||
cpptoolsjson.input = $$PWD/../../../src/plugins/cpptools/CppTools.json.in
|
||||
|
||||
Reference in New Issue
Block a user