GNOME Bugzilla – Bug 327315
GStreamer CVS head files to build with GCC 4.1
Last modified: 2006-03-21 14:46:54 UTC
Please describe the problem: cc1: warnings being treated as errors gstbin.c: In function 'gst_bin_dispose': gstbin.c:386: warning: dereferencing type-punned pointer will break strict-aliasing rules gstbin.c: In function 'gst_bin_provide_clock_func': gstbin.c:508: warning: dereferencing type-punned pointer will break strict-aliasing rules gstbin.c:510: warning: dereferencing type-punned pointer will break strict-aliasing rules gstbin.c: In function 'gst_bin_send_event': gstbin.c:1798: warning: value computed is not used Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
gstbin.c: In function 'gst_bin_dispose': gstbin.c:387: warning: dereferencing type-punned pointer will break strict-aliasing rules gstbin.c:388: warning: dereferencing type-punned pointer will break strict-aliasing rules gstbin.c: In function 'gst_bin_provide_clock_func': gstbin.c:510: warning: dereferencing type-punned pointer will break strict-aliasing rules gstbin.c:512: warning: dereferencing type-punned pointer will break strict-aliasing rules gstbin.c: In function 'gst_bin_send_event': gstbin.c:1802: warning: value computed is not used gstbuffer.c: In function 'gst_buffer_create_sub': gstbuffer.c:489: warning: value computed is not used gstbus.c: In function 'gst_bus_peek': gstbus.c:506: warning: value computed is not used gstclock.c: In function 'gst_clock_set_master': gstclock.c:884: warning: dereferencing type-punned pointer will break strict-aliasing rules gstelement.c: In function 'gst_element_set_clock': gstelement.c:413: warning: dereferencing type-punned pointer will break strict-aliasing rules gstelement.c: In function 'gst_element_dispose': gstelement.c:2425: warning: dereferencing type-punned pointer will break strict-aliasing rules gstelement.c:2426: warning: dereferencing type-punned pointer will break strict-aliasing rules gstelement.c: In function 'gst_element_set_bus_func': gstelement.c:2599: warning: dereferencing type-punned pointer will break strict-aliasing rules gstghostpad.c: In function 'gst_proxy_pad_dispose': gstghostpad.c:382: warning: dereferencing type-punned pointer will break strict-aliasing rules gstminiobject.c: In function 'gst_value_set_mini_object': gstminiobject.c:403: warning: dereferencing type-punned pointer will break strict-aliasing rules gstminiobject.c: In function 'gst_value_take_mini_object': gstminiobject.c:423: warning: dereferencing type-punned pointer will break strict-aliasing rules gstpad.c: In function 'gst_pad_set_pad_template': gstpad.c:1765: warning: dereferencing type-punned pointer will break strict-aliasing rules gstpad.c: In function 'gst_pad_event_default_dispatch': gstpad.c:2711: warning: value computed is not used gstpipeline.c: In function 'gst_pipeline_dispose': gstpipeline.c:180: warning: dereferencing type-punned pointer will break strict-aliasing rules gstpipeline.c: In function 'gst_pipeline_use_clock': gstpipeline.c:587: warning: dereferencing type-punned pointer will break strict-aliasing rules gstpipeline.c: In function 'gst_pipeline_auto_clock': gstpipeline.c:634: warning: dereferencing type-punned pointer will break strict-aliasing rules gstbasesrc.c: In function 'gst_base_src_send_event': gstbasesrc.c:824: warning: value computed is not used gstbasetransform.c: In function 'gst_base_transform_prepare_output_buf': gstbasetransform.c:836: warning: value computed is not used gstcollectpads.c: In function 'gst_collect_pads_peek': gstcollectpads.c:396: warning: value computed is not used gstcollectpads.c: In function 'gst_collect_pads_pop': gstcollectpads.c:429: warning: dereferencing type-punned pointer will break strict-aliasing rules gstcollectpads.c: In function 'gst_collect_pads_chain': gstcollectpads.c:704: warning: dereferencing type-punned pointer will break strict-aliasing rules gstnettimeprovider.c: In function 'gst_net_time_provider_set_property': gstnettimeprovider.c:307: warning: dereferencing type-punned pointer will break strict-aliasing rules gstcapsfilter.c: In function 'gst_capsfilter_prepare_buf': gstcapsfilter.c:245: warning: value computed is not used gstcapsfilter.c:264: warning: value computed is not used gst-run.c: In function ‘main’: gst-run.c:294: warning: unused variable ‘nextopt’
Fixed, closing. 2006-03-21 Edward Hervey <edward@fluendo.com> reviewed by: <delete if not using a buddy> * gst/gstbin.c: (gst_bin_dispose), (gst_bin_provide_clock_func), (gst_bin_handle_message_func): * gst/gstclock.c: (gst_clock_dispose), (gst_clock_set_master): * gst/gstelement.c: (gst_element_set_clock), (gst_element_dispose), (gst_element_set_bus_func): * gst/gstghostpad.c: (gst_proxy_pad_dispose): * gst/gstminiobject.c: (gst_value_set_mini_object), (gst_value_take_mini_object): * gst/gstpad.c: (gst_pad_set_pad_template): * gst/gstpipeline.c: (gst_pipeline_dispose), (gst_pipeline_use_clock), (gst_pipeline_auto_clock): * libs/gst/base/gstcollectpads.c: (gst_collect_pads_pop), (gst_collect_pads_chain): * libs/gst/net/gstnettimeprovider.c: (gst_net_time_provider_set_property): Series of fixes for dereferenced pointers that gcc 4.1 complains about. It's in fact all issues with gst_*object_replace(). 2006-03-21 Edward Hervey <edward@fluendo.com> * gst/gstbuffer.h: * gst/gstevent.h: * gst/gstmessage.h: gst_[buffer|event|message]_ref() macros are replaced by a static inline functions because gcc-4.1 will about if the return value isn't used. * tests/check/gst/gstevent.c: (event_probe): gst_event_ref now has to be given a GstEvent* , fix check accordingly.