cast-align warning when building spice-gtk on Arm

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

 



Hello list!

attached is log of error i receive when trying to build on Arm, so i had to use --disable-werror to be able to build spice-gtk, any ideas if they should be ignored?
---
Armin ranjbar

In file included from /usr/include/gstreamer-1.0/gst/gstpad.h:69:0,
                 from /usr/include/gstreamer-1.0/gst/gstelement.h:57,
                 from /usr/include/gstreamer-1.0/gst/gstbin.h:27,
                 from /usr/include/gstreamer-1.0/gst/gst.h:35,
                 from channel-display-gst.c:26:
/usr/include/gstreamer-1.0/gst/gstbuffer.h: In function ‘gst_buffer_ref’:
/usr/include/gstreamer-1.0/gst/gstbuffer.h:353:10: warning: cast increases required alignment of target type [-Wcast-align]
   return (GstBuffer *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (buf));
          ^
/usr/include/gstreamer-1.0/gst/gstbuffer.h: In function ‘gst_buffer_copy’:
/usr/include/gstreamer-1.0/gst/gstbuffer.h:40:50: warning: cast increases required alignment of target type [-Wcast-align]
 #define GST_BUFFER_CAST(obj)                    ((GstBuffer *)(obj))
                                                  ^
/usr/include/gstreamer-1.0/gst/gstbuffer.h:41:50: note: in expansion of macro ‘GST_BUFFER_CAST’
 #define GST_BUFFER(obj)                         (GST_BUFFER_CAST(obj))
                                                  ^
/usr/include/gstreamer-1.0/gst/gstbuffer.h:385:10: note: in expansion of macro ‘GST_BUFFER’
   return GST_BUFFER (gst_mini_object_copy (GST_MINI_OBJECT_CONST_CAST (buf)));
          ^
In file included from /usr/include/gstreamer-1.0/gst/gstevent.h:184:0,
                 from /usr/include/gstreamer-1.0/gst/gstpadtemplate.h:36,
                 from /usr/include/gstreamer-1.0/gst/gstpad.h:72,
                 from /usr/include/gstreamer-1.0/gst/gstelement.h:57,
                 from /usr/include/gstreamer-1.0/gst/gstbin.h:27,
                 from /usr/include/gstreamer-1.0/gst/gst.h:35,
                 from channel-display-gst.c:26:
/usr/include/gstreamer-1.0/gst/gstmessage.h: In function ‘gst_message_ref’:
/usr/include/gstreamer-1.0/gst/gstmessage.h:343:10: warning: cast increases required alignment of target type [-Wcast-align]
   return (GstMessage *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (msg));
          ^
/usr/include/gstreamer-1.0/gst/gstmessage.h: In function ‘gst_message_copy’:
/usr/include/gstreamer-1.0/gst/gstmessage.h:175:51: warning: cast increases required alignment of target type [-Wcast-align]
 #define GST_MESSAGE_CAST(obj)                    ((GstMessage*)(obj))
                                                   ^
/usr/include/gstreamer-1.0/gst/gstmessage.h:373:10: note: in expansion of macro ‘GST_MESSAGE_CAST’
   return GST_MESSAGE_CAST (gst_mini_object_copy (GST_MINI_OBJECT_CONST_CAST (msg)));
          ^
In file included from /usr/include/gstreamer-1.0/gst/gstpadtemplate.h:36:0,
                 from /usr/include/gstreamer-1.0/gst/gstpad.h:72,
                 from /usr/include/gstreamer-1.0/gst/gstelement.h:57,
                 from /usr/include/gstreamer-1.0/gst/gstbin.h:27,
                 from /usr/include/gstreamer-1.0/gst/gst.h:35,
                 from channel-display-gst.c:26:
/usr/include/gstreamer-1.0/gst/gstevent.h: In function ‘gst_event_ref’:
/usr/include/gstreamer-1.0/gst/gstevent.h:418:10: warning: cast increases required alignment of target type [-Wcast-align]
   return (GstEvent *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (event));
          ^
/usr/include/gstreamer-1.0/gst/gstevent.h: In function ‘gst_event_copy’:
/usr/include/gstreamer-1.0/gst/gstevent.h:193:42: warning: cast increases required alignment of target type [-Wcast-align]
 #define GST_EVENT_CAST(obj)             ((GstEvent *)(obj))
                                          ^
/usr/include/gstreamer-1.0/gst/gstevent.h:445:10: note: in expansion of macro ‘GST_EVENT_CAST’
   return GST_EVENT_CAST (gst_mini_object_copy (GST_MINI_OBJECT_CONST_CAST (event)));
          ^
In file included from /usr/include/gstreamer-1.0/gst/gst.h:45:0,
                 from channel-display-gst.c:26:
channel-display-gst.c: In function ‘handle_pipeline_message’:
/usr/include/glib-2.0/gobject/gtype.h:2207:6: warning: cast increases required alignment of target type [-Wcast-align]
     ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
      ^
/usr/include/gstreamer-1.0/gst/gstdebugutils.h:87:87: note: in definition of macro ‘GST_DEBUG_BIN_TO_DOT_FILE’
 #define GST_DEBUG_BIN_TO_DOT_FILE(bin, details, file_name) gst_debug_bin_to_dot_file (bin, details, file_name)
                                                                                       ^
/usr/include/glib-2.0/gobject/gtype.h:479:66: note: in expansion of macro ‘_G_TYPE_CIC’
 #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type)    (_G_TYPE_CIC ((instance), (g_type), c_type))
                                                                  ^
/usr/include/gstreamer-1.0/gst/gstbin.h:37:35: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
 #define GST_BIN(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_BIN, GstBin))
                                   ^
channel-display-gst.c:301:35: note: in expansion of macro ‘GST_BIN’
         GST_DEBUG_BIN_TO_DOT_FILE(GST_BIN(decoder->pipeline),
                                   ^
In file included from /usr/include/glib-2.0/gobject/gobject.h:24:0,
                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from spice-client.h:23,
                 from channel-display-gst.c:20:
channel-display-gst.c: In function ‘create_pipeline’:
/usr/include/glib-2.0/gobject/gtype.h:2207:6: warning: cast increases required alignment of target type [-Wcast-align]
     ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
      ^
/usr/include/glib-2.0/gobject/gtype.h:479:66: note: in expansion of macro ‘_G_TYPE_CIC’
 #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type)    (_G_TYPE_CIC ((instance), (g_type), c_type))
                                                                  ^
/usr/include/gstreamer-1.0/gst/app/gstappsrc.h:31:4: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_APP_SRC,GstAppSrc))
    ^
channel-display-gst.c:416:23: note: in expansion of macro ‘GST_APP_SRC’
     decoder->appsrc = GST_APP_SRC(gst_bin_get_by_name(GST_BIN(decoder->pipeline), "src"));
                       ^
/usr/include/glib-2.0/gobject/gtype.h:479:66: note: in expansion of macro ‘_G_TYPE_CIC’
 #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type)    (_G_TYPE_CIC ((instance), (g_type), c_type))
                                                                  ^
/usr/include/gstreamer-1.0/gst/gstbin.h:37:35: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
 #define GST_BIN(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_BIN, GstBin))
                                   ^
channel-display-gst.c:416:55: note: in expansion of macro ‘GST_BIN’
     decoder->appsrc = GST_APP_SRC(gst_bin_get_by_name(GST_BIN(decoder->pipeline), "src"));
                                                       ^
/usr/include/glib-2.0/gobject/gtype.h:2207:6: warning: cast increases required alignment of target type [-Wcast-align]
     ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
      ^
/usr/include/glib-2.0/gobject/gtype.h:479:66: note: in expansion of macro ‘_G_TYPE_CIC’
 #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type)    (_G_TYPE_CIC ((instance), (g_type), c_type))
                                                                  ^
/usr/include/gstreamer-1.0/gst/app/gstappsrc.h:31:4: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_APP_SRC,GstAppSrc))
    ^
channel-display-gst.c:416:23: note: in expansion of macro ‘GST_APP_SRC’
     decoder->appsrc = GST_APP_SRC(gst_bin_get_by_name(GST_BIN(decoder->pipeline), "src"));
                       ^
/usr/include/glib-2.0/gobject/gtype.h:2207:6: warning: cast increases required alignment of target type [-Wcast-align]
     ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
      ^
/usr/include/glib-2.0/gobject/gtype.h:479:66: note: in expansion of macro ‘_G_TYPE_CIC’
 #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type)    (_G_TYPE_CIC ((instance), (g_type), c_type))
                                                                  ^
/usr/include/gstreamer-1.0/gst/app/gstappsink.h:31:4: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_APP_SINK,GstAppSink))
    ^
channel-display-gst.c:417:24: note: in expansion of macro ‘GST_APP_SINK’
     decoder->appsink = GST_APP_SINK(gst_bin_get_by_name(GST_BIN(decoder->pipeline), "sink"));
                        ^
/usr/include/glib-2.0/gobject/gtype.h:479:66: note: in expansion of macro ‘_G_TYPE_CIC’
 #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type)    (_G_TYPE_CIC ((instance), (g_type), c_type))
                                                                  ^
/usr/include/gstreamer-1.0/gst/gstbin.h:37:35: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
 #define GST_BIN(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_BIN, GstBin))
                                   ^
channel-display-gst.c:417:57: note: in expansion of macro ‘GST_BIN’
     decoder->appsink = GST_APP_SINK(gst_bin_get_by_name(GST_BIN(decoder->pipeline), "sink"));
                                                         ^
/usr/include/glib-2.0/gobject/gtype.h:2207:6: warning: cast increases required alignment of target type [-Wcast-align]
     ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
      ^
/usr/include/glib-2.0/gobject/gtype.h:479:66: note: in expansion of macro ‘_G_TYPE_CIC’
 #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type)    (_G_TYPE_CIC ((instance), (g_type), c_type))
                                                                  ^
/usr/include/gstreamer-1.0/gst/app/gstappsink.h:31:4: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_APP_SINK,GstAppSink))
    ^
channel-display-gst.c:417:24: note: in expansion of macro ‘GST_APP_SINK’
     decoder->appsink = GST_APP_SINK(gst_bin_get_by_name(GST_BIN(decoder->pipeline), "sink"));
                        ^
/usr/include/glib-2.0/gobject/gtype.h:2207:6: warning: cast increases required alignment of target type [-Wcast-align]
     ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
      ^
/usr/include/glib-2.0/gobject/gtype.h:479:66: note: in expansion of macro ‘_G_TYPE_CIC’
 #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type)    (_G_TYPE_CIC ((instance), (g_type), c_type))
                                                                  ^
/usr/include/gstreamer-1.0/gst/gstpipeline.h:32:42: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
 #define GST_PIPELINE(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PIPELINE, GstPipeline))
                                          ^
channel-display-gst.c:422:32: note: in expansion of macro ‘GST_PIPELINE’
     bus = gst_pipeline_get_bus(GST_PIPELINE(decoder->pipeline));
                                ^
/usr/include/glib-2.0/gobject/gtype.h:2207:6: warning: cast increases required alignment of target type [-Wcast-align]
     ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
      ^
/usr/include/glib-2.0/gobject/gtype.h:479:66: note: in expansion of macro ‘_G_TYPE_CIC’
 #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type)    (_G_TYPE_CIC ((instance), (g_type), c_type))
                                                                  ^
/usr/include/gstreamer-1.0/gst/gstpipeline.h:32:42: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
 #define GST_PIPELINE(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PIPELINE, GstPipeline))
                                          ^
channel-display-gst.c:426:45: note: in expansion of macro ‘GST_PIPELINE’
     decoder->clock = gst_pipeline_get_clock(GST_PIPELINE(decoder->pipeline));
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]