mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-09 04:58:16 +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:
parent
2677fbf4a4
commit
45efd0b05b
@ -769,9 +769,9 @@ else
|
||||
fi
|
||||
|
||||
# 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
|
||||
EXTRA_CFLAGS="${EXTRA_CFLAGS} -Wno-long-long"
|
||||
EXTRA_CFLAGS="${EXTRA_CFLAGS} -Wno-long-long -Wno-format-extra-args -Wno-array-bounds"
|
||||
case "${host}" in
|
||||
alpha*-*-linux* )
|
||||
EXTRA_CFLAGS="${EXTRA_CFLAGS} -mieee"
|
||||
|
Loading…
x
Reference in New Issue
Block a user