I have just been checking a C-file with a syntax error:
parse error!
int main(void)
{
int i;
}
I was hoping to get an error due to the syntax error and a warning about the "unused/unset variable" (or similar). However, cppcheck exits with error-code 0 (success) and no warning. Is this intended behavior?
I could observe this with cppcheck 1.72 and 1.73. Command line switches used:
Dear list,
I have just been checking a C-file with a syntax error:
I was hoping to get an error due to the syntax error and a warning about the "unused/unset variable" (or similar). However, cppcheck exits with error-code 0 (success) and no warning. Is this intended behavior?
I could observe this with cppcheck 1.72 and 1.73. Command line switches used:
With version 1.67 I am at least getting a warning about the unused variable.
Thanks for giving me hints and tips,
Rainer
Last edit: rpoisel 2016-04-14