Re: [PATCH 5/5] arch/um: remove duplicate structure field initialization

From: AmÃrico Wang
Date: Tue Sep 22 2009 - 10:05:18 EST


On Tue, Sep 22, 2009 at 12:26 AM, Segher Boessenkool
<segher@xxxxxxxxxxxxxxxxxxx> wrote:
>> "
>> The initialization shall occur in initializer list order, each
>> initializer provided for a particular subobject overriding any
>> previously listed initializer for the same subobject [...]
>> "
>>
>> I am wondering why gcc doesn't (can't?) complain about this?
>
> Does -Woverride-init (included in -Wextra / -W) not work? ÂIf so, please
> file a bug report.

Hmm, right, it works, but it seems that Linux kernel doesn't use it.
Maybe we should add it? :-/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/