diff --git a/analyzer/codechecker_analyzer/analyzers/gcc/result_handler.py b/analyzer/codechecker_analyzer/analyzers/gcc/result_handler.py index 8040d3b7ff..1e884984bf 100644 --- a/analyzer/codechecker_analyzer/analyzers/gcc/result_handler.py +++ b/analyzer/codechecker_analyzer/analyzers/gcc/result_handler.py @@ -71,7 +71,13 @@ def postprocess_result(self, skip_handlers: Optional[SkipListHandlers]): gcc_output_file, self.checker_labels, source_dir_path=self.source_dir_path) - reports = [r for r in reports if not r.skip(skip_handlers)] + # FIXME: We absolutely want to support gcc compiler warnings + # eventually (which don't start with '-Wanalyzer'), but we should + # probably list them in the label files as well, etc. + reports = \ + [r for r in reports if not r.skip(skip_handlers) and + r.checker_name.startswith("-Wanalyzer")] + for report in reports: report.checker_name = \ actual_name_to_codechecker_name(report.checker_name)