Re: Compiler turns off warnings unexpectedly

2009-01-02 Thread Jakub Jelinek
On Thu, Jan 01, 2009 at 03:11:52AM +0100, Jan Engelhardt wrote: > > On Thursday 2009-01-01 03:05, Andrew Pinski wrote: > >On Wed, Dec 31, 2008 at 9:02 PM, Jan Engelhardt wrote: > >> Hi, > >> > >> > >> I have here an (attached) testcase which unexpectedly turns off > >> warnings. Compiling it usin

Re: Compiler turns off warnings unexpectedly

2009-01-02 Thread Paolo Bonzini
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 fail

Re: Compiler turns off warnings unexpectedly

2009-01-02 Thread Dodji Seketeli
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 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 'p

Re: Compiler turns off warnings unexpectedly

2008-12-31 Thread Jan Engelhardt
On Thursday 2009-01-01 03:05, Andrew Pinski wrote: >On Wed, Dec 31, 2008 at 9:02 PM, Jan Engelhardt 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_aut

Re: Compiler turns off warnings unexpectedly

2008-12-31 Thread Andrew Pinski
On Wed, Dec 31, 2008 at 9:02 PM, Jan Engelhardt 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 fun

Compiler turns off warnings unexpectedly

2008-12-31 Thread Jan Engelhardt
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’ What I would have expected: test.c: In function ‘pam