From 4cd20d4202eff46b5ea821efde78fcab7cd448da Mon Sep 17 00:00:00 2001 From: Radek Vykydal Date: Tue, 5 Nov 2024 15:55:55 +0100 Subject: [PATCH] infra: update cppcheck for version 2.16 I was also considering removing the -DG_DEFINE_TYPE options and similar and suppress the undefinedMacro instead of syntaxError but commit 8282570816e48117f3b61c43eae37db6884e1181 suggests there must be a reason we are defining the G_DEFINE_ with -D option. So make the syntaxError suppressions at least more specific. --- tests/cppcheck/suppression-list.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/cppcheck/suppression-list.txt b/tests/cppcheck/suppression-list.txt index b8648c0a73e..b97d3a9006f 100644 --- a/tests/cppcheck/suppression-list.txt +++ b/tests/cppcheck/suppression-list.txt @@ -7,6 +7,24 @@ unusedFunction:widgets/glade/* // stop whining about G_DEFINE macros constStatement:*/widgets/src/* constStatement:widgets/src/* +// The constStatement is replaced with syntaxError in cppcheck 2.16 +// Let's ignore it but be more location specific +syntaxError:*/widgets/src/BaseWindow.c:166 +syntaxError:*/widgets/src/DiskOverview.c:120 +syntaxError:*/widgets/src/HubWindow.c:96 +syntaxError:*/widgets/src/LayoutIndicator.c:86 +syntaxError:*/widgets/src/MountpointSelector.c:102 +syntaxError:*/widgets/src/SpokeSelector.c:94 +syntaxError:*/widgets/src/SpokeWindow.c:68 +syntaxError:*/widgets/src/StandaloneWindow.c:67 +syntaxError:widgets/src/BaseWindow.c:166 +syntaxError:widgets/src/DiskOverview.c:120 +syntaxError:widgets/src/HubWindow.c:96 +syntaxError:widgets/src/LayoutIndicator.c:86 +syntaxError:widgets/src/MountpointSelector.c:102 +syntaxError:widgets/src/SpokeSelector.c:94 +syntaxError:widgets/src/SpokeWindow.c:68 +syntaxError:widgets/src/StandaloneWindow.c:67 // returnDanglingLifetime:*widgets/src/gettext.h