diff options
Diffstat (limited to 'tools/warn/other_warn_patterns.py')
-rw-r--r-- | tools/warn/other_warn_patterns.py | 31 |
1 files changed, 5 insertions, 26 deletions
diff --git a/tools/warn/other_warn_patterns.py b/tools/warn/other_warn_patterns.py index d05c8e90fc..dd078fb49b 100644 --- a/tools/warn/other_warn_patterns.py +++ b/tools/warn/other_warn_patterns.py @@ -75,37 +75,13 @@ warn_patterns = [ # misc warnings misc('Duplicate logtag', [r".*: warning: tag \".+\" \(.+\) duplicated in .+"]), - misc('Typedef redefinition', - [r".*: warning: redefinition of typedef '.+' is a C11 feature"]), - misc('GNU old-style field designator', - [r".*: warning: use of GNU old-style field designator extension"]), - misc('Missing field initializers', - [r".*: warning: missing field '.+' initializer"]), - misc('Missing braces', - [r".*: warning: suggest braces around initialization of", - r".*: warning: too many braces around scalar initializer .+Wmany-braces-around-scalar-init", - r".*: warning: braces around scalar initializer"]), - misc('Comparison of integers of different signs', - [r".*: warning: comparison of integers of different signs.+sign-compare"]), - misc('Add braces to avoid dangling else', - [r".*: warning: add explicit braces to avoid dangling else"]), - misc('Initializer overrides prior initialization', - [r".*: warning: initializer overrides prior initialization of this subobject"]), - misc('Assigning value to self', - [r".*: warning: explicitly assigning value of .+ to itself"]), - misc('GNU extension, variable sized type not at end', - [r".*: warning: field '.+' with variable sized type '.+' not at the end of a struct or class"]), - misc('Comparison of constant is always false/true', - [r".*: comparison of .+ is always .+Wtautological-constant-out-of-range-compare"]), - misc('Hides overloaded virtual function', - [r".*: '.+' hides overloaded virtual function"]), - misc('Incompatible pointer types', - [r".*: warning: incompatible .*pointer types .*-Wincompatible-.*pointer-types"]), # Assembler warnings asm('ASM value size does not match register size', [r".*: warning: value size does not match register size specified by the constraint and modifier"]), asm('IT instruction is deprecated', [r".*: warning: applying IT instruction .* is deprecated"]), + asm('setjmp/longjmp/vfork changed binding', + [r".*: warning: .*(setjmp|longjmp|vfork) changed binding to .*"]), # NDK warnings {'category': 'NDK', 'severity': Severity.HIGH, 'description': 'NDK: Generate guard with empty availability, obsoleted', @@ -168,6 +144,9 @@ warn_patterns = [ {'category': 'RenderScript', 'severity': Severity.LOW, 'description': 'RenderScript warnings', 'patterns': [r'.*\.rscript:.*: warning: ']}, + {'category': 'RenderScript', 'severity': Severity.HIGH, + 'description': 'RenderScript is deprecated', + 'patterns': [r'.*: warning: Renderscript is deprecated:.+']}, # Broken/partial warning messages will be skipped. {'category': 'Misc', 'severity': Severity.SKIP, 'description': 'skip, ,', |