lkml.org 
[lkml]   [2006]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] semaphore.h: add missing "sleepers = 0" initialization
On Mon, Oct 30, 2006 at 05:43:14AM -0500, Robert P. J. Day wrote:
>
> Add the missing initialization of "sleepers" to 0 in two semaphore
> initialization macros.

Umm... What the hell for? Both for struct initializer and for
compound literals all named fields that had not been mentioned
get initialized as they would for static objects. So that's
simply adding more work to parser for no reason whatsoever.

There are only two cases when something is left uninitialized:
* auto variable with no initializer whatsoever
* padding and unnamed members

That's it.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-10-30 11:57    [W:0.050 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site