Compiler turns off warnings unexpectedly

Dodji Seketeli dodji@redhat.com
Fri Jan 2 09:35:00 GMT 2009


Jan Engelhardt a écrit :
> On Thursday 2009-01-01 03:05, Andrew Pinski wrote:
>> On Wed, Dec 31, 2008 at 9:02 PM, Jan Engelhardt <jengelh@medozas.de> wrote:
>>> Hi,
>>>
>>>
>>> I have here an (attached) testcase which unexpectedly turns off
>>> warnings. Compiling it using `gcc test.c -c -Wall` (or test.i) gives:
>>>
>>> test.c: In function 'pam_sm_authenticate':
>>> test.c:6: warning: implicit declaration of function 'undef'
>> This works on the trunk but fails on the 4.3 branch.
> 
> gcc 4.1 also produces the expected output (implicit declaration undef2),
> so it seems like a recent regression.

I guess filling a bug at http://gcc.gnu.org/bugzilla about this 
regression would help.

Thanks.



More information about the Gcc mailing list