[lttng-dev] [PATCH lttng-tools 2/3] Extras: Change TYPE of braces around single statement warning in checkpatch
Christian Babeux
christian.babeux at efficios.com
Mon Jan 7 17:12:41 EST 2013
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 <christian.babeux at efficios.com>
---
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
More information about the lttng-dev
mailing list