[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m3bqdx6dlq.fsf@maximus.localdomain>
Date: Fri, 27 Jul 2007 18:00:33 +0200
From: Krzysztof Halasa <khc@...waw.pl>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Josh Triplett <josht@...ux.vnet.ibm.com>,
linux-kernel@...r.kernel.org,
Linus Torvalds <torvalds@...ux-foundation.org>,
linux-sparse@...r.kernel.org
Subject: Re: [PATCH] CodingStyle: proscribe do-while without braces.
Andrew Morton <akpm@...ux-foundation.org> writes:
> it's better that we all do things the same way. What that way _is_ is
> actually less important, unless it's something stupid, of course.
It's certainly true WRT things like indentation but IMHO it shouldn't
go that far, and if it goes, it should be non-braced version.
If we prefer non-braced versions of "if" and "while", it would be
a bit strange to require braces with "do while", wouldn't it?
Sparse warnings... I think it shouldn't complain either, unless
called with extra parameter.
Perhaps some pointer to a bad-looking example so I can see for myself?
--
Krzysztof Halasa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists