Commit 78fcba8f authored by Måns Rullgård's avatar Måns Rullgård

disable -Winline spam, --enable-extra-warnings to enable

Originally committed as revision 6957 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 92a35418
...@@ -95,6 +95,7 @@ show_help(){ ...@@ -95,6 +95,7 @@ show_help(){
echo " --enable-gprof enable profiling with gprof [$gprof]" echo " --enable-gprof enable profiling with gprof [$gprof]"
echo " --disable-debug disable debugging symbols" echo " --disable-debug disable debugging symbols"
echo " --disable-opts disable compiler optimizations" echo " --disable-opts disable compiler optimizations"
echo " --enable-extra-warnings enable more compiler warnings"
echo " --disable-mpegaudio-hp faster (but less accurate)" echo " --disable-mpegaudio-hp faster (but less accurate)"
echo " MPEG audio decoding [default=no]" echo " MPEG audio decoding [default=no]"
echo " --disable-protocols disable I/O protocols support [default=no]" echo " --disable-protocols disable I/O protocols support [default=no]"
...@@ -439,6 +440,7 @@ lstatic="yes" ...@@ -439,6 +440,7 @@ lstatic="yes"
lshared="no" lshared="no"
optimize="yes" optimize="yes"
debug="yes" debug="yes"
extrawarnings="no"
dostrip="yes" dostrip="yes"
installstrip="-s" installstrip="-s"
extralibs="-lm" extralibs="-lm"
...@@ -810,6 +812,8 @@ for opt do ...@@ -810,6 +812,8 @@ for opt do
;; ;;
--disable-opts) optimize="no" --disable-opts) optimize="no"
;; ;;
--enable-extra-warnings) extrawarnings="yes"
;;
--disable-mpegaudio-hp) mpegaudio_hp="no" --disable-mpegaudio-hp) mpegaudio_hp="no"
;; ;;
--disable-protocols) protocols="no"; network="no"; ffserver="no" --disable-protocols) protocols="no"; network="no"; ffserver="no"
...@@ -1526,7 +1530,7 @@ check_cflags -Wno-switch ...@@ -1526,7 +1530,7 @@ check_cflags -Wno-switch
check_cflags -Wdisabled-optimization check_cflags -Wdisabled-optimization
check_cflags -Wpointer-arith check_cflags -Wpointer-arith
check_cflags -Wredundant-decls check_cflags -Wredundant-decls
check_cflags -Winline enabled extrawarnings && check_cflags -Winline
# add some linker flags # add some linker flags
check_ldflags $LDLATEFLAGS check_ldflags $LDLATEFLAGS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment