Skip to content

Commit

Permalink
Merge pull request Ericsson#4325 from cservakt/diable-error-checker
Browse files Browse the repository at this point in the history
[fix] Disable clang-diagnostic-error checker
  • Loading branch information
bruntib authored Aug 27, 2024
2 parents b843db0 + 818b063 commit e7fab3e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,12 @@ def get_checker_list(self, config) -> Tuple[List[str], List[str]]:
# as -clang-diagnostic-... .
elif warning_type == CheckerType.ANALYZER:
if state == CheckerState.ENABLED:
compiler_warnings.append('-W' + warning_name)
if checker_name == "clang-diagnostic-error":
# Disable warning of clang-diagnostic-error to
# avoid generated compiler errors.
compiler_warnings.append('-Wno-' + warning_name)
else:
compiler_warnings.append('-W' + warning_name)
enabled_checkers.append(checker_name)
else:
compiler_warnings.append('-Wno-' + warning_name)
Expand Down

0 comments on commit e7fab3e

Please sign in to comment.