GNOME Bugzilla – Bug 662952
compiler warnings if debugging system is disabled
Last modified: 2012-05-24 08:48:29 UTC
Hi I have the following warning with debug system disabled (today git): gstreamer (core): gstbin.c: In function 'gst_bin_handle_message_func': gstbin.c:3144:14: warning: variable 'src' set but not used [-Wunused-but-set-variable] gstelement.c: In function 'gst_element_set_base_time': gstelement.c:509:16: warning: variable 'old' set but not used [-Wunused-but-set-variable] gstelement.c: In function 'gst_element_set_start_time': gstelement.c:573:16: warning: variable 'old' set but not used [-Wunused-but-set-variable] gsttaskpool.c: In function 'gst_task_pool_class_init': gsttaskpool.c:125:17: warning: variable 'gobject_class' set but not used [-Wunused-but-set-variable] gstbaseparse.c: In function 'gst_base_parse_handle_seek': gstbaseparse.c:3763:12: warning: variable 'last_stop' set but not used [-Wunused-but-set-variable] gstbasesink.c: In function 'gst_base_sink_preroll_object': gstbasesink.c:3190:18: warning: variable 'timestamp' set but not used [-Wunused-but-set-variable] gstfilesrc.c: In function 'gst_mmap_buffer_finalize': gstfilesrc.c:528:15: warning: variable 'src' set but not used [-Wunused-but-set-variable] gstfilesrc.c:527:11: warning: variable 'offset' set but not used [-Wunused-but-set-variable] gstqueue.c: In function 'gst_queue_chain': gstqueue.c:956:26: warning: variable 'timestamp' set but not used [-Wunused-but-set-variable] gstqueue.c:956:16: warning: variable 'duration' set but not used [-Wunused-but-set-variable] base plugins: id3v2.c: In function 'id3v2_frames_to_tag_list': id3v2.c:419:11: warning: variable 'start' set but not used [-Wunused-but-set-variable] gstdiscoverer.c: In function '_setup_locked': gstdiscoverer.c:1216:24: warning: variable 'ret' set but not used [-Wunused-but-set-variable] gstbaseaudiosink.c: In function 'gst_base_audio_sink_get_time': gstbaseaudiosink.c:496:11: warning: variable 'raw' set but not used [-Wunused-but-set-variable] gstbaseaudiosink.c: In function 'gst_base_audio_sink_render': gstbaseaudiosink.c:1390:11: warning: variable 'in_offset' set but not used [-Wunused-but-set-variable] gstbaseaudiosrc.c: In function 'gst_base_audio_src_get_time': gstbaseaudiosrc.c:330:11: warning: variable 'raw' set but not used [-Wunused-but-set-variable] gstaudiosink.c: In function 'gst_audioringbuffer_start': gstaudiosink.c:499:17: warning: variable 'sink' set but not used [-Wunused-but-set-variable] riff-media.c: In function 'gst_riff_create_audio_caps': riff-media.c:1466:15: warning: variable 'valid_bits_per_sample' set but not used [-Wunused-but-set-variable] gstplaybin2.c: In function 'pad_removed_cb': gstplaybin2.c:2699:15: warning: variable 'playbin' set but not used [-Wunused-but-set-variable] gstplaysink.c: In function 'gst_play_sink_vis_unblocked': gstplaysink.c:724:16: warning: variable 'playsink' set but not used [-Wunused-but-set-variable] gstdecodebin.c: In function 'print_feature': gstdecodebin.c:366:16: warning: variable 'rname' set but not used [-Wunused-but-set-variable] gstdecodebin2.c: In function 'gst_decode_group_control_demuxer_pad': gstdecodebin2.c:2960:17: warning: variable 'dbin' set but not used [-Wunused-but-set-variable] gstaudioresample.c: In function 'gst_audio_resample_transform': gstaudioresample.c:1183:10: warning: variable 'size' set but not used [-Wunused-but-set-variable] gstssaparse.c: In function 'gst_ssa_parse_push_line': gstssaparse.c:243:8: warning: variable 'num' set but not used [-Wunused-but-set-variable] gstdecodebin.c: In function 'print_feature': gstdecodebin.c:366:16: warning: variable 'rname' set but not used [-Wunused-but-set-variable] gstmultifdsink.c: In function 'gst_multi_fd_sink_new_client': gstmultifdsink.c:1843:16: warning: variable 'ok' set but not used [-Wunused-but-set-variable] good plugins: audiochebband.c: In function 'generate_coefficients': audiochebband.c:539:19: warning: variable 'zi' set but not used [-Wunused-but-set-variable] audiochebband.c:539:15: warning: variable 'zr' set but not used [-Wunused-but-set-variable] gstmpegaudioparse.c: In function 'gst_mpeg_audio_parse_handle_first_frame': gstmpegaudioparse.c:769:13: warning: variable 'tag_rev' set but not used [-Wunused-but-set-variable] gstauparse.c: In function 'gst_au_parse_parse_header': gstauparse.c:228:11: warning: variable 'size' set but not used [-Wunused-but-set-variable] gstavidemux.c: In function 'gst_avi_demux_riff_parse_vprp': gstavidemux.c:1822:37: warning: variable 'fd' set but not used [-Wunused-but-set-variable] gstavidemux.c: In function 'avi_demux_handle_seek_push': gstavidemux.c:4224:12: warning: variable 'keyframe' set but not used [-Wunused-but-set-variable] gstnavigationtest.c: In function 'gst_navigationtest_get_unit_size': gstnavigationtest.c:121:22: warning: variable 'navtest' set but not used [-Wunused-but-set-variable] gstdeinterlace.c: In function 'gst_deinterlace_sink_event': gstdeinterlace.c:2389:25: warning: variable 'ret' set but not used [-Wunused-but-set-variable] plugin_info.c: In function 'setOptimizedMethods': plugin_info.c:56:16: warning: variable 'cpuFlavour' set but not used [-Wunused-but-set-variable] gstrtpxqtdepay.c: In function 'gst_rtp_xqt_depay_process': gstrtpxqtdepay.c:339:15: warning: variable 'timescale' set but not used [-Wunused-but-set-variable] gstrtpxqtdepay.c:334:25: warning: variable 'z' set but not used [-Wunused-but-set-variable] gstrtpxqtdepay.c:334:22: warning: variable 'a' set but not used [-Wunused-but-set-variable] gstrtpxqtdepay.c:334:19: warning: variable 'f' set but not used [-Wunused-but-set-variable] gstrtpxqtdepay.c:334:16: warning: variable 'k' set but not used [-Wunused-but-set-variable] gstrtpxqtdepay.c:281:23: warning: variable 'd' set but not used [-Wunused-but-set-variable] qtdemux.c: In function 'gst_qtdemux_loop': qtdemux.c:3799:11: warning: variable 'cur_offset' set but not used [-Wunused-but-set-variable] qtdemux.c: In function 'qtdemux_parse_node': qtdemux.c:4793:13: warning: variable 'tlen' set but not used [-Wunused-but-set-variable] qtdemux.c: In function 'qtdemux_parse_amr_bitrate': qtdemux.c:6243:9: warning: unused variable 'size' [-Wunused-variable] qtdemux.c: In function 'qtdemux_tag_add_revdns': qtdemux.c:8247:11: warning: variable 'datatype' set but not used [-Wunused-but-set-variable] qtdemux_dump.c: In function 'qtdemux_dump_hdlr': qtdemux_dump.c:181:35: warning: variable 'manufacturer' set but not used [-Wunused-but-set-variable] qtdemux_dump.c:181:26: warning: variable 'subtype' set but not used [-Wunused-but-set-variable] qtdemux_dump.c:181:20: warning: variable 'type' set but not used [-Wunused-but-set-variable] qtdemux_dump.c:181:11: warning: variable 'version' set but not used [-Wunused-but-set-variable] qtdemux_dump.c: In function 'qtdemux_dump_ctts': qtdemux_dump.c:449:53: warning: variable 'offset' set but not used [-Wunused-but-set-variable] qtdemux_dump.c:449:46: warning: variable 'count' set but not used [-Wunused-but-set-variable] qtdemux_dump.c: In function 'qtdemux_dump_sdtp': qtdemux_dump.c:727:10: warning: variable 'val' set but not used [-Wunused-but-set-variable] qtdemux_dump.c:726:11: warning: variable 'version' set but not used [-Wunused-but-set-variable] qtdemux_dump.c: In function 'qtdemux_dump_unknown': qtdemux_dump.c:753:7: warning: variable 'len' set but not used [-Wunused-but-set-variable] gstrtpxqtdepay.c: In function 'gst_rtp_xqt_depay_process': gstrtpxqtdepay.c:339:15: warning: variable 'timescale' set but not used [-Wunused-but-set-variable] gstrtpxqtdepay.c:334:25: warning: variable 'z' set but not used [-Wunused-but-set-variable] gstrtpxqtdepay.c:334:22: warning: variable 'a' set but not used [-Wunused-but-set-variable] gstrtpxqtdepay.c:334:19: warning: variable 'f' set but not used [-Wunused-but-set-variable] gstrtpxqtdepay.c:334:16: warning: variable 'k' set but not used [-Wunused-but-set-variable] gstrtpxqtdepay.c:281:23: warning: variable 'd' set but not used [-Wunused-but-set-variable] matroska-demux.c: In function 'gst_matroska_demux_video_caps': matroska-demux.c:4970:16: warning: variable 'd' set but not used [-Wunused-but-set-variable] matroska-demux.c:4970:13: warning: variable 'n' set but not used [-Wunused-but-set-variable] gstrtpac3depay.c: In function 'gst_rtp_ac3_depay_process': gstrtpac3depay.c:173:17: warning: variable 'NF' set but not used [-Wunused-but-set-variable] gstrtpac3depay.c:173:13: warning: variable 'FT' set but not used [-Wunused-but-set-variable] gstrtpceltpay.c: In function 'gst_rtp_celt_pay_parse_ident': gstrtpceltpay.c:208:11: warning: variable 'bytes_per_packet' set but not used [-Wunused-but-set-variable] gstrtpceltpay.c:207:64: warning: variable 'overlap' set but not used [-Wunused-but-set-variable] gstrtpceltpay.c:207:11: warning: variable 'version' set but not used [-Wunused-but-set-variable] gstrtpg723depay.c: In function 'gst_rtp_g723_depay_setcaps': gstrtpg723depay.c:130:20: warning: variable 'rtpg723depay' set but not used [-Wunused-but-set-variable] gstrtpg729depay.c: In function 'gst_rtp_g729_depay_setcaps': gstrtpg729depay.c:128:20: warning: variable 'rtpg729depay' set but not used [-Wunused-but-set-variable] gstrtph263pdepay.c: In function 'gst_rtp_h263p_depay_process': gstrtph263pdepay.c:255:18: warning: variable 'PEBIT' set but not used [-Wunused-but-set-variable] gstrtph263pay.c: In function 'gst_rtp_h263_pay_mode_B_fragment': gstrtph263pay.c:1387:20: warning: variable 'm' set but not used [-Wunused-but-set-variable] gstrtph264depay.c: In function 'gst_rtp_h264_depay_process': gstrtph264depay.c:667:12: warning: variable 'nal_ref_idc' set but not used [-Wunused-but-set-variable] gstrtph264pay.c: In function 'gst_rtp_h264_pay_parse_sprop_parameter_sets': gstrtph264pay.c:565:9: warning: variable 'len' set but not used [-Wunused-but-set-variable] gstrtpsirenpay.c: In function 'gst_rtp_siren_pay_setcaps': gstrtpsirenpay.c:106:19: warning: variable 'rtpsirenpay' set but not used [-Wunused-but-set-variable] gstrtpspeexpay.c: In function 'gst_rtp_speex_pay_parse_ident': gstrtpspeexpay.c:145:39: warning: variable 'mode' set but not used [-Wunused-but-set-variable] gstrtpsv3vdepay.c: In function 'gst_rtp_sv3v_depay_process': gstrtpsv3vdepay.c:155:18: warning: variable 'E' set but not used [-Wunused-but-set-variable] gstrtpsv3vdepay.c:155:15: warning: variable 'S' set but not used [-Wunused-but-set-variable] gstrtptheoradepay.c: In function 'gst_rtp_theora_depay_process': gstrtptheoradepay.c:409:18: warning: variable 'packets' set but not used [-Wunused-but-set-variable] gstrtpvorbisdepay.c: In function 'gst_rtp_vorbis_depay_process': gstrtpvorbisdepay.c:449:18: warning: variable 'packets' set but not used [-Wunused-but-set-variable] gstrtpvrawpay.c: In function 'gst_rtp_vraw_pay_handle_buffer': gstrtpvrawpay.c:370:9: warning: variable 'size' set but not used [-Wunused-but-set-variable] gstrtpbin.c: In function 'pt_map_requested': gstrtpbin.c:2407:14: warning: variable 'rtpbin' set but not used [-Wunused-but-set-variable] gstrtpbin.c: In function 'caps_changed': gstrtpbin.c:2444:14: warning: variable 'bin' set but not used [-Wunused-but-set-variable] gstrtpssrcdemux.c: In function 'gst_rtp_ssrc_demux_src_query': gstrtpssrcdemux.c:762:29: warning: variable 'demuxpad' set but not used [-Wunused-but-set-variable] rtpjitterbuffer.c: In function 'calculate_skew': rtpjitterbuffer.c:372:11: warning: variable 'slope' set but not used [-Wunused-but-set-variable] rtpsession.c: In function 'rtp_session_process_sdes': rtpsession.c:1975:9: warning: variable 'items' set but not used [-Wunused-but-set-variable] rtpsession.c: In function 'is_rtcp_time': rtpsession.c:2932:31: warning: variable 'elapsed' set but not used [-Wunused-but-set-variable] rtpsource.c: In function 'rtp_source_send_rtp': rtpsource.c:1189:20: warning: variable 'rtp_diff' set but not used [-Wunused-but-set-variable] rtpsource.c:1189:11: warning: variable 'rt_diff' set but not used [-Wunused-but-set-variable] gstrtpsession.c: In function 'rtcp_thread': gstrtpsession.c:845:20: warning: variable 'res' set but not used [-Wunused-but-set-variable] gstrtspsrc.c: In function 'gst_rtspsrc_handle_internal_src_event': gstrtspsrc.c:2016:15: warning: variable 'src' set but not used [-Wunused-but-set-variable] gstrtspsrc.c: In function 'gst_rtspsrc_sink_chain': gstrtspsrc.c:2162:17: warning: variable 'ret' set but not used [-Wunused-but-set-variable] gstrtpdec.c: In function 'gst_rtp_dec_chain_rtcp': gstrtpdec.c:549:14: warning: variable 'src' set but not used [-Wunused-but-set-variable] bad plugins: gstbasevideodecoder.c: In function 'gst_base_video_decoder_flush_decode': gstbasevideodecoder.c:1087:16: warning: unused variable 'buf' [-Wunused-variable] CC libgstbayer_la-tmp-orc.lo tmp-orc.c: In function '_backup_gst_bayer_horiz_upsample': tmp-orc.c:413:12: warning: variable 'var48' set but not used [-Wunused-but-set-variable] tmp-orc.c:409:12: warning: variable 'var44' set but not used [-Wunused-but-set-variable] gstcamerabin.c: In function 'camerabin_pad_blocked': gstcamerabin.c:1753:17: warning: variable 'camera' set but not used [-Wunused-but-set-variable] gstdvdspu.c: In function 'gst_dvd_spu_advance_spu': gstdvdspu.c:748:20: warning: variable 'vid_run_ts' set but not used [-Wunused-but-set-variable] gsth264parse.c: In function 'gst_h264_parse_sink_setcaps': gsth264parse.c:1408:10: warning: variable 'profile' set but not used [-Wunused-but-set-variable] gsth264parse.c: In function 'gst_h264_parse_chain_forward': gsth264parse.c:2069:16: warning: variable 'first_mb_in_slice' set but not used [-Wunused-but-set-variable] gsth264parse.c:2050:12: warning: variable 'nal_ref_idc' set but not used [-Wunused-but-set-variable] gsth264parse.c: In function 'gst_h264_parse_queue_buffer': gsth264parse.c:2350:16: warning: variable 'timestamp' set but not used [-Wunused-but-set-variable] gsthdvparse.c: In function 'parse_dv_multi_pack': gsthdvparse.c:195:52: warning: variable 'focusmode' set but not used [-Wunused-but-set-variable] gsthdvparse.c:195:25: warning: variable 'ae' set but not used [-Wunused-but-set-variable] gsthdvparse.c:262:18: warning: variable 'is' set but not used [-Wunused-but-set-variable] gsthdvparse.c:261:44: warning: variable 'e_zoom' set but not used [-Wunused-but-set-variable] gsthdvparse.c: In function 'parse_video_frame': gsthdvparse.c:503:18: warning: variable 'df' set but not used [-Wunused-but-set-variable] gsthdvparse.c:503:14: warning: variable 'bf' set but not used [-Wunused-but-set-variable] gsthdvparse.c:535:21: warning: variable 'dow' set but not used [-Wunused-but-set-variable] gsthdvparse.c:534:18: warning: variable 'tm' set but not used [-Wunused-but-set-variable] gsthdvparse.c:569:12: warning: variable 'fr' set but not used [-Wunused-but-set-variable] gsthdvparse.c:330:20: warning: variable 'rf' set but not used [-Wunused-but-set-variable] gsthdvparse.c:330:16: warning: variable 'tf' set but not used [-Wunused-but-set-variable] gsthdvparse.c:328:37: warning: variable 'vbv_buffer' set but not used [-Wunused-but-set-variable] gsthdvparse.c:328:29: warning: variable 'height' set but not used [-Wunused-but-set-variable] gsthdvparse.c:328:22: warning: variable 'width' set but not used [-Wunused-but-set-variable] gsthdvparse.c:328:11: warning: variable 'vbv_delay' set but not used [-Wunused-but-set-variable] gsthdvparse.c:327:37: warning: variable 'abst' set but not used [-Wunused-but-set-variable] gsthdvparse.c:327:24: warning: variable 'cgms' set but not used [-Wunused-but-set-variable] gsthdvparse.c:327:17: warning: variable 'gop_m' set but not used [-Wunused-but-set-variable] gsthdvparse.c:327:10: warning: variable 'gop_n' set but not used [-Wunused-but-set-variable] gsthdvparse.c:326:53: warning: variable 'chroma' set but not used [-Wunused-but-set-variable] gsthdvparse.c:326:45: warning: variable 'format' set but not used [-Wunused-but-set-variable] gsthdvparse.c:326:38: warning: variable 'level' set but not used [-Wunused-but-set-variable] gsthdvparse.c:326:29: warning: variable 'profile' set but not used [-Wunused-but-set-variable] gsthdvparse.c:326:18: warning: variable 'framerate' set but not used [-Wunused-but-set-variable] gsthdvparse.c:326:10: warning: variable 'aspect' set but not used [-Wunused-but-set-variable] gsthdvparse.c:325:43: warning: variable 'sdm' set but not used [-Wunused-but-set-variable] gsthdvparse.c:325:38: warning: variable 'sfr' set but not used [-Wunused-but-set-variable] gsthdvparse.c:325:28: warning: variable 'hdr_size' set but not used [-Wunused-but-set-variable] gsthdvparse.c:325:20: warning: variable 'data_h' set but not used [-Wunused-but-set-variable] gsthdvparse.c:325:10: warning: variable 'nbframes' set but not used [-Wunused-but-set-variable] gsthdvparse.c:324:16: warning: variable 'bitrate' set but not used [-Wunused-but-set-variable] gsthdvparse.c:324:11: warning: variable 'etn' set but not used [-Wunused-but-set-variable] gsthdvparse.c: In function 'parse_audio_frame': gsthdvparse.c:639:12: warning: variable 'acly' set but not used [-Wunused-but-set-variable] gsthdvparse.c:638:18: warning: variable 'cgms' set but not used [-Wunused-but-set-variable] gsthdvparse.c:638:10: warning: variable 'option' set but not used [-Wunused-but-set-variable] gsthdvparse.c:637:33: warning: variable 'channel' set but not used [-Wunused-but-set-variable] gsthdvparse.c:637:23: warning: variable 'compress' set but not used [-Wunused-but-set-variable] gsthdvparse.c:637:19: warning: variable 'fs' set but not used [-Wunused-but-set-variable] gsthdvparse.c:637:10: warning: variable 'bitrate' set but not used [-Wunused-but-set-variable] gsthdvparse.c:636:11: warning: variable 'audio_comp' set but not used [-Wunused-but-set-variable] gsthdvparse.c:634:18: warning: variable 'nbaau' set but not used [-Wunused-but-set-variable] gsthdvparse.c:634:10: warning: variable 'nbmute' set but not used [-Wunused-but-set-variable] gsthdvparse.c:633:11: warning: variable 'etn' set but not used [-Wunused-but-set-variable] gstinteraudiosrc.c: In function 'gst_inter_audio_src_get_caps': gstinteraudiosrc.c:229:21: warning: unused variable 'interaudiosrc' [-Wunused-variable] gstinteraudiosrc.c: In function 'gst_inter_audio_src_negotiate': gstinteraudiosrc.c:259:21: warning: unused variable 'interaudiosrc' [-Wunused-variable] gstinteraudiosrc.c: In function 'gst_inter_audio_src_newsegment': gstinteraudiosrc.c:269:21: warning: unused variable 'interaudiosrc' [-Wunused-variable] gstinteraudiosrc.c: In function 'gst_inter_audio_src_start': gstinteraudiosrc.c:279:21: warning: unused variable 'interaudiosrc' [-Wunused-variable] gstinteraudiosrc.c: In function 'gst_inter_audio_src_stop': gstinteraudiosrc.c:289:21: warning: unused variable 'interaudiosrc' [-Wunused-variable] gstinteraudiosrc.c: In function 'gst_inter_audio_src_get_times': gstinteraudiosrc.c:300:21: warning: unused variable 'interaudiosrc' [-Wunused-variable] gstinteraudiosrc.c: In function 'gst_inter_audio_src_is_seekable': gstinteraudiosrc.c:326:21: warning: unused variable 'interaudiosrc' [-Wunused-variable] gstinteraudiosrc.c: In function 'gst_inter_audio_src_unlock': gstinteraudiosrc.c:336:21: warning: unused variable 'interaudiosrc' [-Wunused-variable] gstinteraudiosrc.c: In function 'gst_inter_audio_src_event': gstinteraudiosrc.c:346:21: warning: unused variable 'interaudiosrc' [-Wunused-variable] gstinteraudiosrc.c: In function 'gst_inter_audio_src_do_seek': gstinteraudiosrc.c:420:21: warning: unused variable 'interaudiosrc' [-Wunused-variable] gstinteraudiosrc.c: In function 'gst_inter_audio_src_query': gstinteraudiosrc.c:430:21: warning: unused variable 'interaudiosrc' [-Wunused-variable] gstinteraudiosrc.c: In function 'gst_inter_audio_src_check_get_range': gstinteraudiosrc.c:440:21: warning: unused variable 'interaudiosrc' [-Wunused-variable] gstinteraudiosrc.c: In function 'gst_inter_audio_src_fixate': gstinteraudiosrc.c:450:21: warning: unused variable 'interaudiosrc' [-Wunused-variable] gstinteraudiosrc.c: In function 'gst_inter_audio_src_unlock_stop': gstinteraudiosrc.c:465:21: warning: unused variable 'interaudiosrc' [-Wunused-variable] gstinteraudiosrc.c: In function 'gst_inter_audio_src_prepare_seek_segment': gstinteraudiosrc.c:476:21: warning: unused variable 'interaudiosrc' [-Wunused-variable] gstintervideosrc.c: In function 'gst_inter_video_src_get_caps': gstintervideosrc.c:227:21: warning: unused variable 'intervideosrc' [-Wunused-variable] gstintervideosrc.c: In function 'gst_inter_video_src_negotiate': gstintervideosrc.c:263:21: warning: unused variable 'intervideosrc' [-Wunused-variable] gstintervideosrc.c: In function 'gst_inter_video_src_newsegment': gstintervideosrc.c:273:21: warning: unused variable 'intervideosrc' [-Wunused-variable] gstintervideosrc.c: In function 'gst_inter_video_src_start': gstintervideosrc.c:283:21: warning: unused variable 'intervideosrc' [-Wunused-variable] gstintervideosrc.c: In function 'gst_inter_video_src_stop': gstintervideosrc.c:293:21: warning: unused variable 'intervideosrc' [-Wunused-variable] gstintervideosrc.c: In function 'gst_inter_video_src_get_times': gstintervideosrc.c:304:21: warning: unused variable 'intervideosrc' [-Wunused-variable] gstintervideosrc.c: In function 'gst_inter_video_src_is_seekable': gstintervideosrc.c:330:21: warning: unused variable 'intervideosrc' [-Wunused-variable] gstintervideosrc.c: In function 'gst_inter_video_src_unlock': gstintervideosrc.c:340:21: warning: unused variable 'intervideosrc' [-Wunused-variable] gstintervideosrc.c: In function 'gst_inter_video_src_event': gstintervideosrc.c:350:21: warning: unused variable 'intervideosrc' [-Wunused-variable] gstintervideosrc.c: In function 'gst_inter_video_src_do_seek': gstintervideosrc.c:438:21: warning: unused variable 'intervideosrc' [-Wunused-variable] gstintervideosrc.c: In function 'gst_inter_video_src_query': gstintervideosrc.c:448:21: warning: unused variable 'intervideosrc' [-Wunused-variable] gstintervideosrc.c: In function 'gst_inter_video_src_check_get_range': gstintervideosrc.c:458:21: warning: unused variable 'intervideosrc' [-Wunused-variable] gstintervideosrc.c: In function 'gst_inter_video_src_fixate': gstintervideosrc.c:468:21: warning: unused variable 'intervideosrc' [-Wunused-variable] gstintervideosrc.c: In function 'gst_inter_video_src_unlock_stop': gstintervideosrc.c:494:21: warning: unused variable 'intervideosrc' [-Wunused-variable] gstintervideosrc.c: In function 'gst_inter_video_src_prepare_seek_segment': gstintervideosrc.c:505:21: warning: unused variable 'intervideosrc' [-Wunused-variable] gsthdvparse.c: In function 'parse_dv_multi_pack': gsthdvparse.c:195:52: warning: variable 'focusmode' set but not used [-Wunused-but-set-variable] gsthdvparse.c:195:25: warning: variable 'ae' set but not used [-Wunused-but-set-variable] gsthdvparse.c:262:18: warning: variable 'is' set but not used [-Wunused-but-set-variable] gsthdvparse.c:261:44: warning: variable 'e_zoom' set but not used [-Wunused-but-set-variable] gsthdvparse.c: In function 'parse_video_frame': gsthdvparse.c:503:18: warning: variable 'df' set but not used [-Wunused-but-set-variable] gsthdvparse.c:503:14: warning: variable 'bf' set but not used [-Wunused-but-set-variable] gsthdvparse.c:535:21: warning: variable 'dow' set but not used [-Wunused-but-set-variable] gsthdvparse.c:534:18: warning: variable 'tm' set but not used [-Wunused-but-set-variable] gsthdvparse.c:569:12: warning: variable 'fr' set but not used [-Wunused-but-set-variable] gsthdvparse.c:330:20: warning: variable 'rf' set but not used [-Wunused-but-set-variable] gsthdvparse.c:330:16: warning: variable 'tf' set but not used [-Wunused-but-set-variable] gsthdvparse.c:328:37: warning: variable 'vbv_buffer' set but not used [-Wunused-but-set-variable] gsthdvparse.c:328:29: warning: variable 'height' set but not used [-Wunused-but-set-variable] gsthdvparse.c:328:22: warning: variable 'width' set but not used [-Wunused-but-set-variable] gsthdvparse.c:328:11: warning: variable 'vbv_delay' set but not used [-Wunused-but-set-variable] gsthdvparse.c:327:37: warning: variable 'abst' set but not used [-Wunused-but-set-variable] gsthdvparse.c:327:24: warning: variable 'cgms' set but not used [-Wunused-but-set-variable] gsthdvparse.c:327:17: warning: variable 'gop_m' set but not used [-Wunused-but-set-variable] gsthdvparse.c:327:10: warning: variable 'gop_n' set but not used [-Wunused-but-set-variable] gsthdvparse.c:326:53: warning: variable 'chroma' set but not used [-Wunused-but-set-variable] gstmpegdemux.c: In function 'gst_flups_demux_send_data': gstmpegdemux.c:463:9: warning: variable 'size' set but not used [-Wunused-but-set-variable] gstmpegdemux.c: In function 'gst_flups_demux_parse_sys_head': gstmpegdemux.c:1759:14: warning: variable 'fixed' set but not used [-Wunused-but-set-variable] gstmpegdemux.c:1758:12: warning: variable 'audio_bound' set but not used [-Wunused-but-set-variable] gstmpegdemux.c:1777:12: warning: variable 'video_bound' set but not used [-Wunused-but-set-variable] gstmpegdemux.c:1776:14: warning: variable 'video_lock' set but not used [-Wunused-but-set-variable] gstmpegdemux.c:1775:14: warning: variable 'audio_lock' set but not used [-Wunused-but-set-variable] gstmpegdemux.c:1795:14: warning: variable 'packet_rate_restriction' set but not used [-Wunused-but-set-variable] gstmpegdemux.c:1820:15: warning: variable 'buf_byte_size_bound' set but not used [-Wunused-but-set-variable] gstmpegdemux.c: In function 'gst_flups_demux_parse_psm': gstmpegdemux.c:1881:12: warning: variable 'applicable' set but not used [-Wunused-but-set-variable] gstmpegdemux.c: In function 'gst_flups_demux_data_cb': gstmpegdemux.c:2008:16: warning: variable 'nframes' set but not used [-Wunused-but-set-variable] gstmpegdesc.c: In function 'gst_mpeg_descriptor_parse_1': gstmpegdesc.c:52:10: warning: variable 'tag' set but not used [-Wunused-but-set-variable] gstmpegtsdemux.c: In function 'gst_mpegts_stream_parse_cat': gstmpegtsdemux.c:1260:19: warning: variable 'demux' set but not used [-Wunused-but-set-variable] gstmpegtsdemux.c: In function 'gst_mpegts_stream_parse_pmt': gstmpegtsdemux.c:1321:11: warning: variable 'CRC' set but not used [-Wunused-but-set-variable] gstmpegtsdemux.c: In function 'gst_mpegts_demux_parse_adaptation_field': gstmpegtsdemux.c:1916:14: warning: variable 'splice_countdown' set but not used [-Wunused-but-set-variable] gstmpegtsdemux.c: In function 'gst_mpegts_stream_parse_pat': gstmpegtsdemux.c:1986:11: warning: variable 'CRC' set but not used [-Wunused-but-set-variable] gstpesfilter.c: In function 'gst_pes_filter_parse': gstpesfilter.c:456:13: warning: variable 'consumed' set but not used [-Wunused-but-set-variable] mpegtspacketizer.c: In function 'mpegts_packetizer_push_section': mpegtspacketizer.c:2176:11: warning: variable 'subtable_extension' set but not used [-Wunused-but-set-variable] gstmpegdesc.c: In function 'gst_mpeg_descriptor_parse_1': gstmpegdesc.c:48:10: warning: variable 'tag' set but not used [-Wunused-but-set-variable] mpegtspacketizer.c: In function 'mpegts_packetizer_push_section': mpegtspacketizer.c:2311:11: warning: variable 'subtable_extension' set but not used [-Wunused-but-set-variable] tsdemux.c: In function 'gst_ts_demux_push_pending_data': tsdemux.c:2186:21: warning: unused variable 'bs' [-Wunused-variable] gstmvedemux.c: In function 'gst_mve_video_create_buffer': gstmvedemux.c:329:17: warning: variable 'n' set but not used [-Wunused-but-set-variable] gstmvedemux.c: In function 'gst_mve_video_data': gstmvedemux.c:549:18: warning: variable 'y_size' set but not used [-Wunused-but-set-variable] gstmvedemux.c:549:10: warning: variable 'x_size' set but not used [-Wunused-but-set-variable] gstmvedemux.c:548:20: warning: variable 'y_offset' set but not used [-Wunused-but-set-variable] gstmvedemux.c:548:10: warning: variable 'x_offset' set but not used [-Wunused-but-set-variable] gstmvedemux.c:547:21: warning: variable 'last_frame' set but not used [-Wunused-but-set-variable] gstmvedemux.c:547:10: warning: variable 'cur_frame' set but not used [-Wunused-but-set-variable] gstmvedemux.c: In function 'gst_mve_audio_init': gstmvedemux.c:648:11: warning: variable 'requested_buffer' set but not used [-Wunused-but-set-variable] gstmpegdesc.c: In function 'gst_mpeg_descriptor_parse_1': gstmpegdesc.c:52:10: warning: variable 'tag' set but not used [-Wunused-but-set-variable] gstvideomeasure_ssim.c: In function 'gst_ssim_request_new_pad': gstvideomeasure_ssim.c:1126:8: warning: variable 'padcount' set but not used [-Wunused-but-set-variable] gstvideomeasure_ssim.c: In function 'gst_ssim_collected': gstvideomeasure_ssim.c:1419:9: warning: variable 'outsize' set but not used [-Wunused-but-set-variable] h263parse.c: In function 'gst_h263_parse_get_params': h263parse.c:64:23: warning: unused variable 'source_format_name' [-Wunused-variable] gsth264parse.c: In function 'gst_h264_parse_set_caps': gsth264parse.c:1214:29: warning: variable 'profile' set but not used [-Wunused-but-set-variable] gstvideoanalyse.c: In function 'gst_video_analyse_init': gstvideoanalyse.c:317:20: warning: variable 'videoanalyse' set but not used [-Wunused-but-set-variable] gstvideomark.c: In function 'gst_video_mark_init': gstvideomark.c:402:17: warning: variable 'videomark' set but not used [-Wunused-but-set-variable]
commit 84e10969f435f2a3d93709f3a97308091ef5551e Author: Tim-Philipp Müller <tim.muller@collabora.co.uk> Date: Fri Nov 4 00:03:05 2011 +0000 configure: suppress unused variable warnings if gst debugging is disabled https://bugzilla.gnome.org/show_bug.cgi?id=662952
gst-plugins-base: commit 73be2b4b1af0aeb1816bcaf53511fad40d260290 Author: Tim-Philipp Müller <tim.muller@collabora.co.uk> Date: Wed Nov 9 00:36:51 2011 +0000 configure: suppress warnings about unused variables if debugging system is disabled in core https://bugzilla.gnome.org/show_bug.cgi?id=662952
Tim, are you sure disabling the warning is the right way to do it? In many cases one could spare the local variable instead. Especially when you disable debug, you would also like to avoid determining things that are not used (In theory the compiler will eliminate the unused expressions).
> Tim, are you sure disabling the warning is the right way to do it? In many > cases one could spare the local variable instead. Especially when you disable > debug, you would also like to avoid determining things that are not used (In > theory the compiler will eliminate the unused expressions). Well, I recognise that occasionally there may be some value in doing that sort of thing, however: - I don't think we really want to "officially" support warning-free builds of all modules with the debugging system disabled (same for other options really). If you want to be the one taking care of that, go for it. - I personally don't want to see the source code cluttered with #ifdef GST_DISABLE_GST_DEBUG crap all over the place just to avoid warnings like these (or see code uglified in other ways just to avoid warnings) - in most cases we fix stuff by just adding G_GNUC_UNUSED stuff anyway, which pretty much has the same effect as just suppressing the warning - if someone has too much spare time and is really keen on tracking down truly unnecessary variables/assignments/calls, they can still easily do so by adding to / overiding the warning flags. - my hope is that the compiler will just eliminate such unused variables / expressions (or, if that's not done by default, that there's at least a way to "encourage" the compiler to do that). So no, I'm not sure, but then my first instinct was to just WONTFIX the bug.
Does this need to remain open ?
I agree that we should disable the 'unused' warnings when the debugging is disabled. Even if we go and patch up all places where there are warnings now, unless we have a way to have a buildbot build without debugging, we can't guarantee that this will remain warning-free. Places where the variable is never used (not even in debug) will still show up as unused in the build with debug enabled. Closing because there are other patches to disable the warnings.