[rhythmbox/wip/hadess/remove-lirc] build: Remove -Wcast-align warning



commit 99ea64ec7175c85841512e949fba2601c3b8ec84
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jun 6 11:34:52 2018 +0200

    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


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