From mboxrd@z Thu Jan 1 00:00:00 1970 From: christian.babeux@efficios.com (Christian Babeux) Date: Mon, 7 Jan 2013 17:12:41 -0500 Subject: [lttng-dev] [PATCH lttng-tools 2/3] Extras: Change TYPE of braces around single statement warning in checkpatch In-Reply-To: <1357596762-14132-1-git-send-email-christian.babeux@efficios.com> References: <1357596762-14132-1-git-send-email-christian.babeux@efficios.com> Message-ID: <1357596762-14132-2-git-send-email-christian.babeux@efficios.com> 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 --- extras/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/checkpatch.pl b/extras/checkpatch.pl index 4d2c7df..7b2d29b 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); } } -- 1.8.0.2