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>
bb10
Tim Blechmann 2024-02-08 09:28:12 +08:00 committed by Marc Mutz
parent b911bb0d42
commit 84537e6dc2
1 changed files with 1 additions and 1 deletions

View File

@ -862,7 +862,7 @@ bool VCCLCompilerTool::parseOption(const char* option)
}
break;
}
// Fallthrough
[[fallthrough]];
default:
found = false; break;
}