checkpatch: warn on COMPLEX_MACRO and MULTISTATEMENT_MACRO_USE_DO_WHILE
generates lots of false postives, so make it warn only. Change-Id: I0b2fedc564c29bff32f7c48702a9ad54a969650b Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
d2f1c76686
commit
0c8564cacb
@ -4599,10 +4599,10 @@ sub process {
|
||||
}
|
||||
|
||||
if ($dstat =~ /;/) {
|
||||
ERROR("MULTISTATEMENT_MACRO_USE_DO_WHILE",
|
||||
WARN("MULTISTATEMENT_MACRO_USE_DO_WHILE",
|
||||
"Macros with multiple statements should be enclosed in a do - while loop\n" . "$herectx");
|
||||
} else {
|
||||
ERROR("COMPLEX_MACRO",
|
||||
WARN("COMPLEX_MACRO",
|
||||
"Macros with complex values should be enclosed in parentheses\n" . "$herectx");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user