[vlc-commits] configure: warn about duplicated conditions and branches
Rémi Denis-Courmont
git at videolan.org
Sat May 12 14:43:40 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May 12 15:41:00 2018 +0300| [82e235e6e508973f1433e573541c0ac6a0c5ef8e] | committer: Rémi Denis-Courmont
configure: warn about duplicated conditions and branches
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=82e235e6e508973f1433e573541c0ac6a0c5ef8e
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 1290e8e257..b495798172 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