[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.
- best way to check for compiler _warnings_?,
Miles Bader <=
- Re: best way to check for compiler _warnings_?, Ralf Wildenhues, 2010/11/01
- Re: best way to check for compiler _warnings_?, Miles Bader, 2010/11/01
- Re: best way to check for compiler _warnings_?, Miles Bader, 2010/11/01
- Re: best way to check for compiler _warnings_?, Ralf Wildenhues, 2010/11/02
- Re: best way to check for compiler _warnings_?, Peter Rosin, 2010/11/02
- Re: best way to check for compiler _warnings_?, Miles Bader, 2010/11/02
- Re: best way to check for compiler _warnings_?, Peter Rosin, 2010/11/02
- Re: best way to check for compiler _warnings_?, Miles Bader, 2010/11/02
- Re: best way to check for compiler _warnings_?, Ralf Wildenhues, 2010/11/02
- Re: best way to check for compiler _warnings_?, Miles Bader, 2010/11/02