[vlc-commits] configure: warn about duplicated conditions and branches
Rémi Denis-Courmont
git at videolan.org
Sat May 12 14:44:06 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May 12 15:41:00 2018 +0300| [7e93c6f8ee94e29c0e7418982f48c82e5f1c4443] | committer: Rémi Denis-Courmont
configure: warn about duplicated conditions and branches
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7e93c6f8ee94e29c0e7418982f48c82e5f1c4443
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index e507d31694..45e4f3d4da 100644
--- a/configure.ac
+++ b/configure.ac
@@ -933,8 +933,8 @@ dnl
dnl Compiler warnings
dnl
-AX_APPEND_COMPILE_FLAGS([-Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wvolatile-register-var -Wformat -Wformat-security], [CFLAGS])
-AX_APPEND_COMPILE_FLAGS([-Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wvolatile-register-var -Wformat -Wformat-security], [CXXFLAGS])
+AX_APPEND_COMPILE_FLAGS([-Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wvolatile-register-var -Wformat -Wformat-security -Wduplicated-branches -Wduplicated-cond], [CFLAGS])
+AX_APPEND_COMPILE_FLAGS([-Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wvolatile-register-var -Wformat -Wformat-security -Wduplicated-branches -Wduplicated-cond], [CXXFLAGS])
AX_APPEND_COMPILE_FLAGS([-Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Werror-implicit-function-declaration -Winit-self -Wlogical-op -Wshadow=local -Wmultistatement-macros], [CFLAGS])
AX_APPEND_COMPILE_FLAGS([-pipe], [CFLAGS])
More information about the vlc-commits
mailing list