mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
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:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user