autotools: do not add warnings that is included into -Wall already

Plus remove duplicates
This commit is contained in:
Azat Khuzhin 2018-10-27 16:49:39 +03:00
parent 387d91f9ab
commit 006c528a21
No known key found for this signature in database
GPG Key ID: B86086848EF8686D

View File

@ -823,7 +823,8 @@ if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
#error #error
#endif])], have_clang=yes, have_clang=no) #endif])], have_clang=yes, have_clang=no)
CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch" # -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"
if test x$enable_gcc_warnings = xyes; then if test x$enable_gcc_warnings = xyes; then
CFLAGS="$CFLAGS -Werror" CFLAGS="$CFLAGS -Werror"
fi fi