mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-12 05:48:51 -04:00
autotools: do not add warnings that is included into -Wall already
Plus remove duplicates (cherry picked from commit 006c528a21f8beec8993134c12610bd16cde7fff)
This commit is contained in:
parent
ba14879661
commit
bff1423d79
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user