configure: Treat warnings as errors in check_yasm()
authorjamal <jamrial@gmail.com>
Sat, 1 Sep 2012 16:36:10 +0000 (13:36 -0300)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 1 Sep 2012 21:45:32 +0000 (23:45 +0200)
yasm generates a warning instead of an error when "CPU amdnop" is not supported, so the check always succeeds.

HAVE_CPUNOP as true when the available yasm version doesn't support amdnop doesn't make sense.
Check http://fate.ffmpeg.org/log.cgi?time=20120901143315&log=compile&slot=x86_64-archlinux-gcc-oldyasm to see the amount of warnings it generates.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
configure

index 576ada7..3abe231 100755 (executable)
--- a/configure
+++ b/configure
@@ -747,7 +747,7 @@ check_yasm(){
     echo "$1" > $TMPS
     log_file $TMPS
     shift 1
-    check_cmd $yasmexe $YASMFLAGS "$@" -o $TMPO $TMPS
+    check_cmd $yasmexe $YASMFLAGS -Werror "$@" -o $TMPO $TMPS
 }
 
 ld_o(){