We are calling cppcheck with -DG_DEFINE_TYPE and ignoring G_DEFINE_TYPE macros with suppressing constStatement:. Since version 2.16 we are getting syntaxError instead of constStatement for the macros.
Do you have any hint on how to approach the issue?
Would it be OK to just suppress syntaxError instead of constStatement? Then it should be perhaps more location specific.
Thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would like to release Cppcheck 2.16 in 2-3 weeks.
If there is work on major refactorings or features I suggest we integrate those either in the next couple of days or after the release.
My goal is to release Cppcheck-2.16 on saturday. October 26th.
Last edit: Daniel Marjamäki 2024-10-21
icon for cppcheckgui.exe is gone.
Hello,
We are calling cppcheck with
-DG_DEFINE_TYPE
and ignoringG_DEFINE_TYPE
macros with suppressingconstStatement:
. Since version 2.16 we are gettingsyntaxError
instead ofconstStatement
for the macros.Failing case:
https://github.com/rhinstaller/anaconda/actions/runs/11585493148/job/32254494102
It fails with
For example here:
https://github.com/rhinstaller/anaconda/blob/840d6a43fce702403df0d1ddf33c16fd857d5b45/widgets/src/BaseStandalone.c#L68
The check is called with these suppressions:
https://github.com/rhinstaller/anaconda/blob/master/tests/cppcheck/suppression-list.txt
with these options:
https://github.com/rhinstaller/anaconda/blob/840d6a43fce702403df0d1ddf33c16fd857d5b45/tests/cppcheck/runcppcheck.sh#L50
Do you have any hint on how to approach the issue?
Would it be OK to just suppress
syntaxError
instead ofconstStatement
? Then it should be perhaps more location specific.Thank you