lkml.org 
[lkml]   [2009]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC Patch] kbuild: remove -Wdeclaration-after-statement
On Wed, Sep 23, 2009 at 05:38:01AM -0400, Amerigo Wang wrote:
>
> I got lots of "ISO C90 forbids mixed declarations and code" warnings
> during compile today's kernel.
>
> I think we can remove the gcc option '-Wdeclaration-after-statement'
> now, since we already have C99 for 10 years. :)

This is a matter of style more than what C99 allows.
Kernel style is to fobid this(*) so we keep the warning.

(*) Based on reading several threads where this has
been mentioned - I have no specific references to CodingStyle.

Sam


\
 
 \ /
  Last update: 2009-09-23 12:55    [W:0.048 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site