Fix GCC7 fallthrough warnings

This commit is contained in:
Roland Winklmeier
2018-10-02 15:23:06 +02:00
committed by Klaus Basan
parent c0d9aacbb1
commit ebe23a694b
10 changed files with 55 additions and 7 deletions

View File

@@ -10,6 +10,7 @@
#include "blackcore/aircraftmatcher.h"
#include "blackcore/application.h"
#include "blackcore/webdataservices.h"
#include "blackmisc/fallthrough.h"
#include "blackmisc/simulation/simulatedaircraft.h"
#include "blackmisc/simulation/matchingutils.h"
#include "blackmisc/aviation/aircrafticaocode.h"
@@ -226,7 +227,7 @@ namespace BlackCore
matchedModel = candidates.minOrderOrDefault();
break;
}
// [[clang::fallthrough]];
BLACK_FALLTHROUGH;
case CAircraftMatcherSetup::PickFirst:
default:
usedStrategy = CAircraftMatcherSetup::PickFirst; // re-assigned if fall-through