[FFmpeg-cvslog] configure: force erroring out in check_disable_warning() if an option doesn't exists
James Almer
git at videolan.org
Sat Oct 14 02:59:31 EEST 2017
ffmpeg | branch: release/3.4 | James Almer <jamrial at gmail.com> | Fri Oct 13 12:34:34 2017 -0300| [7deb7e6acd4fb8dd09c8e38eb2e07c86371bf94e] | committer: James Almer
configure: force erroring out in check_disable_warning() if an option doesn't exists
Should prevent some options from being added to cflags when they
don't exist and the compiler only warns about it.
Reviewd-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit ad56e8057d8af0201ed0cb65acc12e5889d4afcc)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7deb7e6acd4fb8dd09c8e38eb2e07c86371bf94e
---
configure | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 259619cccd..18d80ee87a 100755
--- a/configure
+++ b/configure
@@ -6309,9 +6309,14 @@ fi
check_disable_warning(){
warning_flag=-W${1#-Wno-}
- test_cflags $warning_flag && add_cflags $1
+ test_cflags $unknown_warning_flags $warning_flag && add_cflags $1
}
+test_cflags -Werror=unused-command-line-argument &&
+ append unknown_warning_flags "-Werror=unused-command-line-argument"
+test_cflags -Werror=unknown-warning-option &&
+ append unknown_warning_flags "-Werror=unknown-warning-option"
+
check_disable_warning -Wno-parentheses
check_disable_warning -Wno-switch
check_disable_warning -Wno-format-zero-length
More information about the ffmpeg-cvslog
mailing list