bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] avoid warnings about initialization of automatic aggregates


From: Jim Meyering
Subject: Re: [PATCH] avoid warnings about initialization of automatic aggregates
Date: Tue, 02 Dec 2008 11:18:43 +0100

Pádraig Brady <address@hidden> wrote:
> Jim Meyering wrote:
>> Only the temporary is static.
>>
>> The original code (that evokes a warning) is like this:
>>
>>     mbstate_t mbstate = { 0, };
>>
>> Using DECLARE_ZEROED_AGGREGATE, it's like this (modulo formatting onto
>> two lines and the approximate line number)
>>
>>     static mbstate_t s0_3724;
>>     mbstate_t mbstate = s0_3724;
>>
>> I considered using memset, but preferred the above.
>> So I think we're ok.
>
> Ah Ok. Sorry for the noise.

No trouble at all.
Thanks for taking the time to think about it and to reply.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]