[vlc-commits] configure: restructure adding unknown args error flags
Marvin Scholz
git at videolan.org
Thu Mar 26 09:09:03 CET 2020
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Wed Mar 11 01:11:56 2020 +0100| [a1057cca64161c58344f1761637aaa98302394a6] | committer: Marvin Scholz
configure: restructure adding unknown args error flags
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a1057cca64161c58344f1761637aaa98302394a6
---
configure.ac | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index b52cb8ce8d..9bd1255838 100644
--- a/configure.ac
+++ b/configure.ac
@@ -108,8 +108,14 @@ AS_IF([test -n "${with_binary_version}"],[
])
dnl Prevent clang from accepting unknown flags with a mere warning
-AX_APPEND_COMPILE_FLAGS([-Werror=unknown-warning-option -Werror=invalid-command-line-argument], [CFLAGS])
-AX_APPEND_COMPILE_FLAGS([-Werror=unknown-warning-option -Werror=invalid-command-line-argument], [CXXFLAGS])
+AX_CHECK_COMPILE_FLAG([-Werror=invalid-command-line-argument], [
+ AX_APPEND_FLAG([-Werror=invalid-command-line-argument], [CFLAGS])
+ AX_APPEND_FLAG([-Werror=invalid-command-line-argument], [CXXFLAGS])
+])
+AX_CHECK_COMPILE_FLAG([-Werror=unknown-warning-option], [
+ AX_APPEND_FLAG([-Werror=unknown-warning-option], [CFLAGS])
+ AX_APPEND_FLAG([-Werror=unknown-warning-option], [CXXFLAGS])
+])
dnl
dnl Check the operating system
More information about the vlc-commits
mailing list