]> git.sesse.net Git - x264/commitdiff
configure: Add -Wno-maybe-uninitialized to CFLAGS
authorDiego Biurrun <diego@biurrun.de>
Tue, 15 Apr 2014 20:54:08 +0000 (22:54 +0200)
committerFiona Glaser <fiona@x264.com>
Sun, 20 Jul 2014 03:53:00 +0000 (20:53 -0700)
The warnings generated by -Wmaybe-uninitialized are mostly spurious.

configure

index 9df6e1fd062f97a5a6ce142585edb87ffeb83742..5622d26e3b92d8a9419bd48c036f8d9deadb679a 100755 (executable)
--- a/configure
+++ b/configure
@@ -1025,6 +1025,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"