From 7a6dd8dde9ea347b5dedd7a712921ca1af1eba50 Mon Sep 17 00:00:00 2001 From: Christian Babeux Date: Mon, 7 Jan 2013 17:12:41 -0500 Subject: [PATCH] Extras: Change TYPE of braces around single statement Change the TYPE of the "braces {} are not necessary for single statement blocks" warning from BRACES to BRACES_SINGLE_STMT in order to correctly ignore this particular warning and continue to warn for other BRACES warnings. Signed-off-by: Christian Babeux Signed-off-by: David Goulet --- extras/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/checkpatch.pl b/extras/checkpatch.pl index 4d2c7dfda..7b2d29b0b 100755 --- a/extras/checkpatch.pl +++ b/extras/checkpatch.pl @@ -3198,7 +3198,7 @@ sub process { $herectx .= raw_line($linenr, $n) . "\n"; } - WARN("BRACES", + WARN("BRACES_SINGLE_STMT", "braces {} are not necessary for single statement blocks\n" . $herectx); } } -- 2.34.1