Mark intentional fall-throughs (Coverity).

This commit is contained in:
Axel Naumann 2017-07-03 11:08:55 +02:00 committed by sftnight
parent 702dc6e269
commit 609b88eabd

View File

@ -403,9 +403,9 @@ namespace {
if (Opts.CPlusPlus) {
switch (CxxStdCompiledWith()) {
case 17: Opts.CPlusPlus1z = 1;
case 14: Opts.CPlusPlus14 = 1;
case 11: Opts.CPlusPlus11 = 1;
case 17: Opts.CPlusPlus1z = 1; // intentional fall-through
case 14: Opts.CPlusPlus14 = 1; // intentional fall-through
case 11: Opts.CPlusPlus11 = 1; break;
default: break;
}
}