Skip to content

Commit 6385c40

Browse files
committed
Suppress Cppcheck syntax errors
Cppcheck cannot recognize the GNU extension of explicit register variables: register int x asm("eax"); This commit suppresses syntax error to prevent explicit register variables being blocked. It also makes real syntax error suppressed, but it doesn't affect much while real ones lead to compile-time errors and can be found early. Change-Id: I603fa80083ba935c7de706546f77bac616da6fcc
1 parent 10ee61f commit 6385c40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/pre-commit.hook

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ cppcheck_suppressions() {
2626
"missingIncludeSystem"
2727
"noValidConfiguration"
2828
"unusedFunction"
29+
"syntaxError"
2930
"identicalInnerCondition:log2_lshift16.h"
3031
"checkLevelNormal:log2_lshift16.h"
3132
"nullPointerRedundantCheck:report.c"

0 commit comments

Comments
 (0)