From 99ea64ec7175c85841512e949fba2601c3b8ec84 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Wed, 6 Jun 2018 11:34:52 +0200
Subject: [PATCH] build: Remove -Wcast-align warning
It generates a false positive error message when trying to compile on
ARM:
/usr/include/gstreamer-1.0/gst/gstbuffer.h: In function 'gst_buffer_ref':
/usr/include/gstreamer-1.0/gst/gstbuffer.h:429:10: error: cast increases required alignment of target type [-Werror=cast-align]
return (GstBuffer *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (buf));
^
See https://bugzilla.gnome.org/show_bug.cgi?id=615698
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 8564f8c44..6fbc49e63 100644
--- a/configure.ac
+++ b/configure.ac
@@ -454,7 +454,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
-Wunused-label -Wunused-value \
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith \
- -Wcast-align -Wformat-security -Wall \
+ -Wformat-security -Wall \
-Werror -Wno-deprecated-declarations -std=gnu89"
if echo "$CFLAGS" | grep -q -- '-O' && echo "$CFLAGS" | grep -q -v -- '-O0'; then
--
2.17.0