best way to check for compiler _warnings_?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I want to check whether the compiler is giving a warning (about an
unrecognized command-line option).

Since the compilation still succeeds, AC_COMPILE_IFELSE doesn't do the
job...

e.g.:

   $ g++ -o /dev/null -catfood -c /tmp/s.cc ; echo $?
   g++: unrecognized option '-catfood'
   0
   $ 

argh

Thanks,

-miles


-- 
Abstainer, n. A weak person who yields to the temptation of denying himself a
pleasure. A total abstainer is one who abstains from everything but
abstention, and especially from inactivity in the affairs of others.


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux