1 Jan 2009 03:02
Compiler turns off warnings unexpectedly
Jan Engelhardt <jengelh <at> medozas.de>
2009-01-01 02:02:15 GMT
2009-01-01 02:02:15 GMT
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_sm_authenticate’: test.c:6: warning: implicit declaration of function ‘undef’ test.c: In function ‘pam_sm_authenticate’: test.c:11: warning: implicit declaration of function ‘undef2’ Compiler in use: openSUSE 11.1 Using built-in specs. Target: i586-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib --with-system-zlib --(Continue reading)enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.3 --enable-linux-futex --without-system-libunwind --with-cpu=generic
Will do so next week if nobody beats me to it.
Paolo
RSS Feed