GNOME Bugzilla – Bug 676500
Errors when building with warnings treated as errors
Last modified: 2012-05-22 13:40:34 UTC
Created attachment 214564 [details] [review] Fixes for compiler warnings We build gst-rtsp-server with warnings treated as errors, and get some compilation errors that we think should be corrected in the code. The errors, which are fixed by the proposed patch that has been attached below, are the following: gst-rtsp-server/gst/rtsp-server/rtsp-auth.c: In function 'gst_rtsp_auth_get_property': gst-rtsp-server/gst/rtsp-server/rtsp-auth.c:90: error: unused variable 'auth' gst-rtsp-server/gst/rtsp-server/rtsp-auth.c: In function 'gst_rtsp_auth_set_property': gst-rtsp-server/gst/rtsp-server/rtsp-auth.c:102: error: unused variable 'auth' gst-rtsp-server/gst/rtsp-server/rtsp-media-factory-uri.c: In function 'payloader_filter': gst-rtsp-server/gst/rtsp-server/rtsp-media-factory-uri.c:124: error: unused variable 'res' gst-rtsp-server/gst/rtsp-server/rtsp-media-factory-uri.c: In function 'find_payloader': gst-rtsp-server/gst/rtsp-server/rtsp-media-factory-uri.c:293: error: unused variable 'tmp' gst-rtsp-server/gst/rtsp-server/rtsp-media-factory-uri.c: In function 'autoplug_continue_cb': gst-rtsp-server/gst/rtsp-server/rtsp-media-factory-uri.c:343: error: unused variable 'res' gst-rtsp-server/gst/rtsp-server/rtsp-media-factory-uri.c:340: error: unused variable 'tmp' gst-rtsp-server/gst/rtsp-server/rtsp-media-factory-uri.c:340: error: unused variable 'list' gst-rtsp-server/gst/rtsp-server/rtsp-client.c:429: error: 'do_send_data_list' defined but not used gst-rtsp-server/gst/rtsp-server/rtsp-server.c: In function 'gst_rtsp_server_io_func': gst-rtsp-server/gst/rtsp-server/rtsp-server.c:796: error: 'result' may be used uninitialized in this function gst-rtsp-server/gst/rtsp-server/rtsp-server.c: In function 'gst_rtsp_server_create_socket': gst-rtsp-server/gst/rtsp-server/rtsp-server.c:565: error: 'socket' may be used uninitialized in this function
commit ffa3166fbd4ae475047a746bf8e477cc5c4d32c2 Author: David Svensson Fors <davidsf at axis.com> Date: Tue May 22 15:37:25 2012 +0200 rtsp: fix compiler warnings Fixes https://bugzilla.gnome.org/show_bug.cgi?id=676500