From: Christian Babeux Date: Mon, 7 Jan 2013 22:12:41 +0000 (-0500) Subject: Extras: Change TYPE of braces around single statement X-Git-Tag: v2.2.0-rc1~120 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=7a6dd8dde9ea347b5dedd7a712921ca1af1eba50 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 --- 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); } }