From: Tim-Philipp Müller Date: Thu, 14 Apr 2011 14:04:19 +0000 (+0100) Subject: mpegstream: fix unused-but-set-variable warnings with gcc 4.6 X-Git-Tag: RELEASE-0.10.18~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=120731ee4eb1a089bbac2dbd88bfc58c8c4397a9;p=platform%2Fupstream%2Fgst-plugins-ugly.git mpegstream: fix unused-but-set-variable warnings with gcc 4.6 --- diff --git a/gst/mpegstream/gstmpegdemux.c b/gst/mpegstream/gstmpegdemux.c index 5264597..d129d46 100644 --- a/gst/mpegstream/gstmpegdemux.c +++ b/gst/mpegstream/gstmpegdemux.c @@ -636,8 +636,7 @@ gst_mpeg_demux_parse_packet (GstMPEGParse * mpeg_parse, GstBuffer * buffer) guint16 headerlen; guint16 packet_length; - gboolean STD_buffer_bound_scale; - guint16 STD_buffer_size_bound; + guint16 STD_buffer_size_bound G_GNUC_UNUSED; guint64 dts; gint64 pts = -1; @@ -677,7 +676,7 @@ gst_mpeg_demux_parse_packet (GstMPEGParse * mpeg_parse, GstBuffer * buffer) case 0x40: GST_DEBUG_OBJECT (mpeg_demux, "have STD"); - STD_buffer_bound_scale = bits & 0x20; + /* STD_buffer_bound_scale = ((bits & 0x20) == 0x20); */ STD_buffer_size_bound = ((guint16) (bits & 0x1F)) << 8; STD_buffer_size_bound |= *buf++;