Recognize -Wimplicit-fallthrough.

Test: warn.py build.log
Change-Id: Ie55248f7348b20d09909a856fe7581a0476b9d9b
This commit is contained in:
Chih-Hung Hsieh
2018-08-31 16:19:19 -07:00
parent 639fe0c7cd
commit e1672866a7

View File

@@ -2268,6 +2268,9 @@ warn_patterns = [
{'category': 'C/C++', 'severity': Severity.MEDIUM, 'option': '-Wunnamed-type-template-args',
'description': 'Unnamed template type argument',
'patterns': [r".*: warning: template argument.+Wunnamed-type-template-args"]},
{'category': 'C/C++', 'severity': Severity.MEDIUM, 'option': '-Wimplicit-fallthrough',
'description': 'Unannotated fall-through between switch labels',
'patterns': [r".*: warning: unannotated fall-through between switch labels.+Wimplicit-fallthrough"]},
{'category': 'C/C++', 'severity': Severity.HARMLESS,
'description': 'Discarded qualifier from pointer target type',