[vlc-commits] configure: Prevent clang from accepting unknown compile flags
Hugo Beauzée-Luyssen
git at videolan.org
Wed Sep 6 12:04:55 CEST 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Sep 6 12:04:31 2017 +0200| [92bf46e0b34dc21a668b3a3f37a048dc479e2cbd] | committer: Hugo Beauzée-Luyssen
configure: Prevent clang from accepting unknown compile flags
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=92bf46e0b34dc21a668b3a3f37a048dc479e2cbd
---
configure.ac | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configure.ac b/configure.ac
index 9c07e2afc0..5b7437b8df 100644
--- a/configure.ac
+++ b/configure.ac
@@ -94,6 +94,10 @@ AS_IF([test -n "${with_binary_version}"],[
[Binary specific 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])
+
dnl
dnl Check the operating system
dnl
More information about the vlc-commits
mailing list