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:
parent
2677fbf4a4
commit
45efd0b05b
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user