From mboxrd@z Thu Jan 1 00:00:00 1970 From: raphael.beamonte@gmail.com (=?UTF-8?q?Rapha=C3=ABl=20Beamonte?=) Date: Wed, 13 Nov 2013 00:44:28 -0500 Subject: [lttng-dev] [PATCH] checkpatch: change status of warning from "BRACES" to "BRACES_SINGLE_STMT" Message-ID: <1384321468-29220-1-git-send-email-raphael.beamonte@gmail.com> The warning about braces that are not necessary for any arm of a statement should be interpreted as a warning about braces around single statements. Signed-off-by: Rapha?l Beamonte --- extras/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/checkpatch.pl b/extras/checkpatch.pl index fdd8484..5a67704 100755 --- a/extras/checkpatch.pl +++ b/extras/checkpatch.pl @@ -3138,7 +3138,7 @@ sub process { $sum_allowed += $_; } if ($sum_allowed == 0) { - WARN("BRACES", + WARN("BRACES_SINGLE_STMT", "braces {} are not necessary for any arm of this statement\n" . $herectx); } elsif ($sum_allowed != $allow && $seen != $allow) { -- 1.7.10.4