[libxml2] Build with "-Wall -Wextra"



commit 45efd0b05b01949301ee1fa6c973d34187b63c2b
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Mon Nov 13 22:05:22 2017 +0100

    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.

 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 988e32e..ebfa702 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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"


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