Skip to content

Commit

Permalink
infra: update cppcheck for version 2.16
Browse files Browse the repository at this point in the history
I was also considering removing the -DG_DEFINE_TYPE options and similar
and suppress the undefinedMacro instead of syntaxError but
commit 8282570
suggests there must be a reason we are defining the G_DEFINE_ with -D
option.

So make the syntaxError suppressions at least more specific.
  • Loading branch information
rvykydal committed Nov 5, 2024
1 parent 840d6a4 commit 4cd20d4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/cppcheck/suppression-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4cd20d4

Please sign in to comment.