From 0c8564cacb94e21dd7a1ff5d0351fee33e8f6fd6 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sun, 17 Apr 2016 04:50:30 +0800 Subject: [PATCH] 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 --- scripts/checkpatch.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 5d23f7c22de..46443262101 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -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"); } }