Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] [lttng-tools PATCH] checkpatch: change status of warning from "BRACES" to "BRACES_SINGLE_STMT"
@ 2013-11-13  5:47 Raphaël Beamonte
  0 siblings, 0 replies; only message in thread
From: Raphaël Beamonte @ 2013-11-13  5:47 UTC (permalink / raw)


Forgot to add "lttng-tools" in the subject prefix, sorry.


2013/11/13 Rapha?l Beamonte <raphael.beamonte at gmail.com>
>
> 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>
> ---
>  extras/checkpatch.pl |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --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
>



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-11-13  5:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-13  5:47 [lttng-dev] [lttng-tools PATCH] checkpatch: change status of warning from "BRACES" to "BRACES_SINGLE_STMT" Raphaël Beamonte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox