From: raphael.beamonte@gmail.com (Raphaël Beamonte)
Subject: [lttng-dev] [PATCH] checkpatch: change status of warning from "BRACES" to "BRACES_SINGLE_STMT"
Date: Wed, 13 Nov 2013 00:44:28 -0500 [thread overview]
Message-ID: <1384321468-29220-1-git-send-email-raphael.beamonte@gmail.com> (raw)
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 <raphael.beamonte at gmail.com>
---
| 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--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
next reply other threads:[~2013-11-13 5:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-13 5:44 Raphaël Beamonte [this message]
2013-11-13 14:38 ` Christian Babeux
2013-11-13 14:52 ` Raphaël Beamonte
2013-11-23 22:38 ` Raphaël Beamonte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1384321468-29220-1-git-send-email-raphael.beamonte@gmail.com \
--to=raphael.beamonte@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox