diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2022-02-10 17:08:16 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2022-02-17 09:33:20 +0000 |
commit | 95287628557da81ac8188c053d8fd2a5a927dea4 (patch) | |
tree | c8d98e84e845ca229fe43dd289c54cea83dff651 /qbs | |
parent | ff71d1fb7b3c6e8d103339a1484588537764a98f (diff) | |
download | qt-creator-95287628557da81ac8188c053d8fd2a5a927dea4.tar.gz |
Disable -Wmissing-field-initializers when building with GCC
This warning is enabled with -Wextra, but incomplete aggregate
initialization is quite common in modern C++ due to direct member
initialization, and we make use of that in Creator in several places.
Change-Id: I585dd70e7c5c52e4549f1c5e3b8d16cc40b260ce
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'qbs')
-rw-r--r-- | qbs/imports/QtcProduct.qbs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qbs/imports/QtcProduct.qbs b/qbs/imports/QtcProduct.qbs index 85b334daf0..ee84b46aa3 100644 --- a/qbs/imports/QtcProduct.qbs +++ b/qbs/imports/QtcProduct.qbs @@ -50,7 +50,7 @@ Product { flags.push("-Wno-deprecated-copy", "-Wno-constant-logical-operand"); } if (!qbs.toolchain.contains("clang")) { - flags.push("-Wno-noexcept-type"); + flags.push("-Wno-missing-field-initializers", "-Wno-noexcept-type"); if (Utilities.versionCompare(cpp.compilerVersion, "9") >= 0) flags.push("-Wno-deprecated-copy", "-Wno-init-list-lifetime"); } |