[FFmpeg-cvslog] configure: add --fatal-warnings option.
Nicolas George
git at videolan.org
Sat Nov 17 12:03:38 CET 2012
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sun Nov 11 21:37:50 2012 +0100| [1ba2e589cc334da2448d395e927ee269727b204c] | committer: Nicolas George
configure: add --fatal-warnings option.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1ba2e589cc334da2448d395e927ee269727b204c
---
configure | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 6904330..3318cf4 100755
--- a/configure
+++ b/configure
@@ -78,6 +78,7 @@ Help options:
Standard options:
--logfile=FILE log tests and output to FILE [config.log]
--disable-logging do not log configure debug information
+ --fatal-warnings fail if any configure warning is generated
--prefix=PREFIX install in PREFIX [$prefix]
--bindir=DIR install binaries in DIR [PREFIX/bin]
--datadir=DIR install data files in DIR [PREFIX/share/ffmpeg]
@@ -2245,6 +2246,8 @@ for opt do
;;
--help|-h) show_help
;;
+ --fatal-warnings) enable fatal_warnings
+ ;;
*)
optname="${opt%%=*}"
optname="${optname#--}"
@@ -4377,7 +4380,10 @@ echo "#endif /* AVUTIL_AVCONFIG_H */" >> $TMPH
cp_if_changed $TMPH libavutil/avconfig.h
-test -n "$WARNINGS" && printf "\n$WARNINGS"
+if test -n "$WARNINGS"; then
+ printf "\n$WARNINGS"
+ enabled fatal_warnings && exit 1
+fi
# build pkg-config files
More information about the ffmpeg-cvslog
mailing list