[x264-devel] [PATCH 1/4] configure: Add -Wno-maybe-uninitialized to	CFLAGS
    Diego Biurrun 
    diego at biurrun.de
       
    Tue Apr 15 23:11:59 CEST 2014
    
    
  
The warnings generated by -Wmaybe-uninitialized are mostly spurious.
---
This is mostly an RFC.  Maybe somebody wishes to doublecheck all current
warnings before this is applied.
Checking for -Wmaybe-uninitialized instead of -Wno-maybe-uninitialized
is done on purpose.  GCC silently accepts any -Wno-foo parameters.
 configure | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/configure b/configure
index 5401753..5ef4103 100755
--- a/configure
+++ b/configure
@@ -1043,6 +1043,10 @@ if cc_check '' -Wshadow ; then
     CFLAGS="-Wshadow $CFLAGS"
 fi
 
+if cc_check '' -Wmaybe-uninitialized ; then
+    CFLAGS="-Wno-maybe-uninitialized $CFLAGS"
+fi
+
 if [ "$bit_depth" -gt "8" ]; then
     define HIGH_BIT_DEPTH
     ASFLAGS="$ASFLAGS -DHIGH_BIT_DEPTH=1"
-- 
1.8.3.2
    
    
More information about the x264-devel
mailing list