aboutsummaryrefslogtreecommitdiffstats
path: root/qtcreator.pri
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2017-09-25 13:50:04 +0200
committerMarco Bubke <marco.bubke@qt.io>2017-10-24 14:24:08 +0000
commit68589a3fbc9afe4485baf728729c969e0f508385 (patch)
treea1be5c173c20078bf0c17495d2e0bf53214608cd /qtcreator.pri
parent9a493f8b83b124b5835f1b124fcae740ab78148d (diff)
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>
Diffstat (limited to 'qtcreator.pri')
-rw-r--r--qtcreator.pri2
1 files changed, 2 insertions, 0 deletions
diff --git a/qtcreator.pri b/qtcreator.pri
index f053732cec..03fd4bc16b 100644
--- a/qtcreator.pri
+++ b/qtcreator.pri
@@ -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)