diff options
author | Tim Blechmann <tim@klingt.org> | 2024-02-08 09:28:12 +0800 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2024-02-12 03:01:48 +0000 |
commit | 84537e6dc22030004c2aec7285641e721da627cf (patch) | |
tree | b3de6ab75c28f2c0248e847833a1645301f7df82 /qmake/generators | |
parent | b911bb0d42622147c687a4856e29a34c22643bba (diff) |
qmake: use [[fallthrough]]
Since qt is on C++17, it's possible too use the [[fallthrough]]
attribute instead of a // Fallthrough comment, that may be stripped by
compiler launchers (ccache/icecc), causing -Wimplicit-fallthrough
warnings.
Pick-to: 6.7
Change-Id: Ic809cf4e95b2160fac591b3802fa123e705337cc
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'qmake/generators')
-rw-r--r-- | qmake/generators/win32/msvc_objectmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/generators/win32/msvc_objectmodel.cpp b/qmake/generators/win32/msvc_objectmodel.cpp index b5639c0108..6517e5c451 100644 --- a/qmake/generators/win32/msvc_objectmodel.cpp +++ b/qmake/generators/win32/msvc_objectmodel.cpp @@ -862,7 +862,7 @@ bool VCCLCompilerTool::parseOption(const char* option) } break; } - // Fallthrough + [[fallthrough]]; default: found = false; break; } |