1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-27 04:55:04 +03:00

Build with "-Wall -Wextra"

Remove warning options that are enabled with "-Wall -Wextra".

Disable -Warray-bounds warning that produces a (seemingly) false
positive in xpath.c.
This commit is contained in:
Nick Wellnhofer 2017-11-13 22:05:22 +01:00
parent 2677fbf4a4
commit 45efd0b05b

View File

@ -769,9 +769,9 @@ else
fi fi
# warnings we'd like to see # warnings we'd like to see
EXTRA_CFLAGS="${EXTRA_CFLAGS} -pedantic -W -Wformat -Wno-format-extra-args -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls" EXTRA_CFLAGS="${EXTRA_CFLAGS} -pedantic -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls"
# warnings we'd like to supress # warnings we'd like to supress
EXTRA_CFLAGS="${EXTRA_CFLAGS} -Wno-long-long" EXTRA_CFLAGS="${EXTRA_CFLAGS} -Wno-long-long -Wno-format-extra-args -Wno-array-bounds"
case "${host}" in case "${host}" in
alpha*-*-linux* ) alpha*-*-linux* )
EXTRA_CFLAGS="${EXTRA_CFLAGS} -mieee" EXTRA_CFLAGS="${EXTRA_CFLAGS} -mieee"