Skip to content

Commit

Permalink
Ignore -Werror
Browse files Browse the repository at this point in the history
In some cases Clang is stricter than GCC regarding the warning messages.
-Werror flag converts these to error messages which thus fail the
analysis. That's why -Werror will be ignored from now on.
  • Loading branch information
bruntib committed Jan 8, 2018
1 parent 8f6be17 commit 17120bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libcodechecker/log/option_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@
'-sectorder': 3,
'--param': 1,
'-u': 1,
'--serialize-diagnostics': 1
'--serialize-diagnostics': 1,
# If Clang gives warning on which GCC doesn't then during checking it is
# considered an error and fails the analysis if the original build contains
# -Werror flag.
'-Werror': 0
}

IGNORED_OPTION_MAP_REGEX = {
Expand Down

0 comments on commit 17120bb

Please sign in to comment.