Use --inline-suppr for cppcheck
jserv opened this issue · comments
Currently, file cppcheck_suppress
tracks the line number, which might cause potential problems for maintenance. According to Cppcheck manual, option --inline-suppr
can enable inline suppressions. Use them by placing one or more comments, like: // cppcheck-suppress warningId
on the lines before the warning to suppress.