Bernd Schmidt wrote:

>>> int x __attribute__ ((uninitialized));
>>>
>>> to tell compiler that it is OK for "x" to be uninitialized?
> 
> Better to call it "initialized", analogous to attribute used/unused.

I agree.

>> I think the general idea is reasonable.  I also think it might be worth
>> spending a few minutes thinking about whether we can implement some more
>> general diagnostic suppression mechanism.  E.g.,
>>    int x __attribute__ ((ignore ("-Wuninitialized")));
> 
> Or this.

FWIW, I think that's overly ambitious.

-- 
Mark Mitchell
CodeSourcery
m...@codesourcery.com
(650) 331-3385 x713

Reply via email to