]> granicus.if.org Git - libevent/commitdiff
build: remove duplicate -Wredundant-decls
authorfanquake <fanquake@gmail.com>
Fri, 26 Jun 2020 06:35:41 +0000 (14:35 +0800)
committerfanquake <fanquake@gmail.com>
Fri, 26 Jun 2020 06:35:41 +0000 (14:35 +0800)
configure.ac

index 2872f8658e3dd313951363f6bce402e07401ddb7..1903f1c241a12589baea4cdd56800c3b33bd8471 100644 (file)
@@ -873,7 +873,7 @@ if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
 #endif])], have_clang=yes, have_clang=no)
 
   # -W is the same as -Wextra
-  CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast"
+  CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wmissing-declarations -Wnested-externs -Wbad-function-cast"
   if test x$enable_gcc_warnings = xyes; then
     CFLAGS="$CFLAGS -Werror"
   fi