build: remove duplicate -Wredundant-decls

(cherry picked from commit ff4ec5fdb02d22c131e63b5a98e453da975a3cb1)
This commit is contained in:
fanquake 2020-06-26 14:35:41 +08:00 committed by Azat Khuzhin
parent ccd6724300
commit cb4b87380d

View File

@ -866,7 +866,7 @@ if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
#endif])], have_clang=yes, have_clang=no) #endif])], have_clang=yes, have_clang=no)
# -W is the same as -Wextra # -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 if test x$enable_gcc_warnings = xyes; then
CFLAGS="$CFLAGS -Werror" CFLAGS="$CFLAGS -Werror"
fi fi