[cfe-commits] P4R: Truncate CodeGEn initializer for arrays that are shorter than the initializer

Chris Lattner clattner at apple.com
Fri Nov 30 21:37:53 PST 2007

On Nov 30, 2007, at 6:59 PM, Christopher Lamb wrote:

>> Aha!  Right there... in front... so obvious.  :)  Thanks Neil.
>> Christopher, can you please change this warning to an extwarn?
> What does that mean exactly? If I change the diagnostic type to  
> 'EXTENSION' then no warning is printed unless the '-pedantic' flag  
> is used. GCC warns without extra flags, and it sounds like unless  
> GNU extensions are supported this should be an error.

Right.  Currently, clang defaults to warning on extensions only when  
pedantic is enabled, and mapping them to errors when -pedantic-errors  
is set.  We can make this more precise in the future (defaulting  
specific classes of extensions to on).


More information about the cfe-commits mailing list