$ cppcheck -q test.c
[test.c:14]: (error) Invalid number of character ({) when these macros are defined: ''.
$ cppcheck -q --template={id}:{file}:{line} test.c
syntaxError:test.c:14
$ cppcheck -q --suppress=syntaxError:test.c:14 test.c
[test.c:14]: (error) Invalid number of character ({) when these macros are defined: ''.
$ cppcheck -q --suppress=* test.c
[test.c:14]: (error) Invalid number of character ({) when these macros are defined: ''.
$ cppcheck -q --suppress=*:: test.c
[test.c:14]: (error) Invalid number of character ({) when these macros are defined: ''.
This is an automated script that's supposed to alert on new issues only - so I need to suppress this issue because it has already been identified. I don't want to open a new ticket for it every time the script runs!
Thanks,
Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can't suppress syntaxError in cppcheck 1.69:
This is an automated script that's supposed to alert on new issues only - so I need to suppress this issue because it has already been identified. I don't want to open a new ticket for it every time the script runs!
Thanks,
Paul