autoconf
[Top][All Lists]
Advanced

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

best way to check for compiler _warnings_?


From: Miles Bader
Subject: best way to check for compiler _warnings_?
Date: Mon, 01 Nov 2010 13:33:13 +0900

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]