Skip to content

Commit

Permalink
Suppress unknownMacro
Browse files Browse the repository at this point in the history
cppcheck creates an unknownMacro error when it cannot resolve a macro.
Since we don't pass in all dependent headers, we don't expect all macros to be discoverable by cppcheck.

Signed-off-by: Dan Rose <dan@digilabs.io>
  • Loading branch information
rotu committed Sep 1, 2020
1 parent 58cd08c commit 0ba3f73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ament_cppcheck/ament_cppcheck/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ def main(argv=sys.argv[1:]):
'-rp',
'--xml',
'--xml-version=2',
'--suppress=internalAstError']
'--suppress=internalAstError',
'--suppress=unknownMacro']
if args.language:
cmd.extend(['--language={0}'.format(args.language)])
for include_dir in (args.include_dirs or []):
Expand Down

0 comments on commit 0ba3f73

Please sign in to comment.