Re: [PATCH] CodingStyle: proscribe do-while without braces.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Krzysztof Halasa <khc@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, Linus Torvalds <torvalds@...>, <linux-sparse@...>
Date: Friday, July 27, 2007 - 1:05 pm

On Fri, 2007-07-27 at 18:00 +0200, Krzysztof Halasa wrote:

Perhaps, but
     1. Existing kernel style uses braces with single-statement
        do-while.
     2. Linus prefers (or at least preferred in October of 2006) braces
        with single-statement do-while.


Good point; Sparse shouldn't warn about this by default.  I've turned
that off in latest Sparse from Git, so you need to give -Wdo-while or
-Wall to get warnings about that.  However, the kernel gives -Wall, so
you'll still see the warnings there.

- Josh Triplett


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] CodingStyle: proscribe do-while without braces., Josh Triplett, (Thu Jul 26, 5:37 pm)
Re: [PATCH] CodingStyle: proscribe do-while without braces., Krzysztof Halasa, (Thu Jul 26, 8:18 pm)
Re: [PATCH] CodingStyle: proscribe do-while without braces., Krzysztof Halasa, (Fri Jul 27, 12:00 pm)
Re: [PATCH] CodingStyle: proscribe do-while without braces., Josh Triplett, (Fri Jul 27, 1:05 pm)
Re: [PATCH] CodingStyle: proscribe do-while without braces., Krzysztof Halasa, (Fri Jul 27, 1:44 pm)