Commit 68589a3f authored by Marco Bubke's avatar Marco Bubke

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's avatarNikolai Kosjar <nikolai.kosjar@qt.io>
parent 9a493f8b
...@@ -157,6 +157,8 @@ osx { ...@@ -157,6 +157,8 @@ osx {
INSTALL_APP_PATH = $$QTC_PREFIX/bin 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_PLUGIN_PATH = $$relative_path($$IDE_PLUGIN_PATH, $$IDE_BIN_PATH)
RELATIVE_LIBEXEC_PATH = $$relative_path($$IDE_LIBEXEC_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) RELATIVE_DATA_PATH = $$relative_path($$IDE_DATA_PATH, $$IDE_BIN_PATH)
......
...@@ -28,6 +28,8 @@ QMAKE_LFLAGS += -fno-merge-debug-strings -fuse-ld=gold ...@@ -28,6 +28,8 @@ QMAKE_LFLAGS += -fno-merge-debug-strings -fuse-ld=gold
CONFIG(release, debug|release):QMAKE_LFLAGS += -Wl,--strip-debug 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 # create fake CppTools.json for the mime type definitions
dependencyList = "\"Dependencies\" : []" dependencyList = "\"Dependencies\" : []"
cpptoolsjson.input = $$PWD/../../../src/plugins/cpptools/CppTools.json.in cpptoolsjson.input = $$PWD/../../../src/plugins/cpptools/CppTools.json.in
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment