[libxml2] Remove -Wno-array-bounds



commit ad93f087d118ac805a8600468ad26d68cc1f6a48
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Thu Apr 25 12:47:49 2019 +0200

    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"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]