1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-24 21:33:51 +03:00

Remove -Wno-array-bounds

It's unsupported on GCC versions older than 4.3 and the false positives
seem to be fixed in newer versions.
This commit is contained in:
Nick Wellnhofer 2019-04-25 12:47:49 +02:00
parent 9948a9a355
commit ad93f087d1
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ matrix:
# Try to emulate a C89 compiler on a POSIX system by disabling as many # Try to emulate a C89 compiler on a POSIX system by disabling as many
# GNU extensions as possible. # GNU extensions as possible.
- compiler: gcc - compiler: gcc
env: CFLAGS="-O2 -std=c89 -D_XOPEN_SOURCE=700 -Werror" env: CFLAGS="-O2 -std=c89 -D_XOPEN_SOURCE=700 -Werror -Wno-error=array-bounds"
# clang with AddressSanitizer and UndefinedBehaviorSanitizer. # clang with AddressSanitizer and UndefinedBehaviorSanitizer.
- compiler: clang - compiler: clang
sudo: required sudo: required

View File

@ -771,7 +771,7 @@ else
# warnings we'd like to see # warnings we'd like to see
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" 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 -Wno-format-extra-args -Wno-array-bounds" EXTRA_CFLAGS="${EXTRA_CFLAGS} -Wno-long-long -Wno-format-extra-args"
case "${host}" in case "${host}" in
alpha*-*-linux* ) alpha*-*-linux* )
EXTRA_CFLAGS="${EXTRA_CFLAGS} -mieee" EXTRA_CFLAGS="${EXTRA_CFLAGS} -mieee"