Skip to content

Commit 381a437

Browse files
committed
mitigated unmatchedSuppression warnings in cfg tests
1 parent 7e7ebed commit 381a437

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

test/cfg/std.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@
7373
#if __cplusplus <= 201402L
7474
void unreachableCode_std_unexpected(int &x)
7575
{
76-
// cppcheck-suppress unexpectedCalled
76+
// TODO: cppcheck-suppress unexpectedCalled
7777
std::unexpected();
78-
// cppcheck-suppress unreachableCode
78+
// TODO: cppcheck-suppress unreachableCode
7979
x=42;
8080
}
8181
#endif

test/cfg/wxwidgets.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,36 +1203,36 @@ void deprecatedFunctions([[maybe_unused]] wxApp &a,
12031203
// cppcheck-suppress ShowPopupCalled
12041204
comboCtrl.ShowPopup();
12051205
#else
1206-
// cppcheck-suppress InsertCalled
1206+
// TODO: cppcheck-suppress InsertCalled
12071207
wxArtProvider::Insert(artProvider);
12081208

1209-
// cppcheck-suppress GetTextIndentCalled
1210-
// cppcheck-suppress ignoredReturnValue
1209+
// TODO: cppcheck-suppress GetTextIndentCalled
1210+
// TODO: cppcheck-suppress ignoredReturnValue
12111211
comboCtrl.GetTextIndent();
12121212

1213-
// cppcheck-suppress HidePopupCalled
1213+
// TODO: cppcheck-suppress HidePopupCalled
12141214
comboCtrl.HidePopup(true);
1215-
// cppcheck-suppress HidePopupCalled
1215+
// TODO: cppcheck-suppress HidePopupCalled
12161216
comboCtrl.HidePopup(false);
1217-
// cppcheck-suppress HidePopupCalled
1217+
// TODO: cppcheck-suppress HidePopupCalled
12181218
comboCtrl.HidePopup(/*default=false*/);
12191219

1220-
// cppcheck-suppress SetTextIndentCalled
1220+
// TODO: cppcheck-suppress SetTextIndentCalled
12211221
comboCtrl.SetTextIndent(0);
12221222

12231223
#if wxUSE_DEBUG_CONTEXT==1
1224-
// cppcheck-suppress GetLevelCalled
1225-
// cppcheck-suppress ignoredReturnValue
1224+
// TODO: cppcheck-suppress GetLevelCalled
1225+
// TODO: cppcheck-suppress ignoredReturnValue
12261226
wxDebugContext::GetLevel();
1227-
// cppcheck-suppress SetLevelCalled
1227+
// TODO: cppcheck-suppress SetLevelCalled
12281228
wxDebugContext::SetLevel(42);
12291229
#endif
12301230

1231-
// cppcheck-suppress wxDos2UnixFilenameCalled
1231+
// TODO: cppcheck-suppress wxDos2UnixFilenameCalled
12321232
wxDos2UnixFilename(path);
12331233

1234-
// cppcheck-suppress wxFileNameFromPathCalled
1235-
// cppcheck-suppress ignoredReturnValue
1234+
// TODO: cppcheck-suppress wxFileNameFromPathCalled
1235+
// TODO: cppcheck-suppress ignoredReturnValue
12361236
wxFileNameFromPath(wxT_2("../test.c"));
12371237
#endif
12381238

0 commit comments

Comments
 (0)