[x264-devel] configure: Add -Wno-maybe-uninitialized to CFLAGS
Diego Biurrun
git at videolan.org
Sun Jul 20 11:58:30 CEST 2014
x264 | branch: master | Diego Biurrun <diego at biurrun.de> | Tue Apr 15 22:54:08 2014 +0200| [f53af048ed94551734265cf8f9dbe12d211a77fc] | committer: Fiona Glaser
configure: Add -Wno-maybe-uninitialized to CFLAGS
The warnings generated by -Wmaybe-uninitialized are mostly spurious.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=f53af048ed94551734265cf8f9dbe12d211a77fc
---
configure | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configure b/configure
index 9df6e1f..5622d26 100755
--- 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"
More information about the x264-devel
mailing list