[C++ PATCH] warning about empty extern "C" structures

Roman Kononov kononov@dls.net
Wed May 17 17:11:00 GMT 2006


On 05/17/2006 11:49, Andrew Pinski wrote:
> 
> On May 17, 2006, at 9:45 AM, Roman Kononov wrote:
> 
>> On 05/17/2006 11:12, Gabriel Dos Reis wrote:
>>> | They prevent from introducing safe C++ code.
>>> I don't understand that comment.
>>
>> Look at this:
> 
> Compile the C code with -pedantic-errors and I get errors with the C code.
> I don't see the real issue.
> 
> If you are going to warn about very valid and well defined C++ code, 
> that is just crazy.
In my example, driver.c is a part of the Linux kernel. It is not real to 
compile the kernel with -pedantic-errors. It uses all possible GCC extensions.

Roman



More information about the Gcc-patches mailing list