mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
Fix cppcheck warnings and cleanup suppression config
- redundantAssignment - knownConditionTrueFalse
This commit is contained in:
committed by
Klaus Basan
parent
000bdee457
commit
3774f2b60f
@@ -614,6 +614,7 @@ namespace BlackMisc
|
||||
constexpr bool globalOffsetTest = false;
|
||||
|
||||
const CCallsign cs(situation.getCallsign());
|
||||
// cppcheck-suppress knownConditionTrueFalse
|
||||
if (!globalOffsetTest && !this->hasTestAltitudeOffset(cs)) { return situation; }
|
||||
CLength os;
|
||||
if (globalOffsetTest)
|
||||
|
||||
Reference in New Issue
Block a user