From ad93f087d118ac805a8600468ad26d68cc1f6a48 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Thu, 25 Apr 2019 12:47:49 +0200 Subject: [PATCH] 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. --- .travis.yml | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5275c4f3..68fe5abd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ matrix: # Try to emulate a C89 compiler on a POSIX system by disabling as many # GNU extensions as possible. - 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. - compiler: clang sudo: required diff --git a/configure.ac b/configure.ac index be575944..9ed3e635 100644 --- a/configure.ac +++ b/configure.ac @@ -771,7 +771,7 @@ else # 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" # 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 alpha*-*-linux* ) EXTRA_CFLAGS="${EXTRA_CFLAGS} -mieee"