Paul Aitken - 2015-06-22

I can't suppress syntaxError in cppcheck 1.69:

$ 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