[FFmpeg-devel] [PATCH 2/2] configure: add --fatal-warnings option.
Nicolas George
nicolas.george at normalesup.org
Sun Nov 11 21:39:10 CET 2012
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
configure | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 0700b1f..b147a7a 100755
--- a/configure
+++ b/configure
@@ -63,6 +63,7 @@ Options: [defaults in brackets after descriptions]
Help options:
--help print this message
+ --fatal-warnings fail if any configure warning is generated
--list-decoders show all available decoders
--list-encoders show all available encoders
--list-hwaccels show all available hardware accelerators
@@ -2239,6 +2240,8 @@ for opt do
;;
--help|-h) show_help
;;
+ --fatal-warnings) enable fatal_warnings
+ ;;
*)
optname="${opt%%=*}"
optname="${optname#--}"
@@ -4369,7 +4372,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
--
1.7.10.4
More information about the ffmpeg-devel
mailing list