diff --git a/gst/dvdspu/gstspu-pgs.c b/gst/dvdspu/gstspu-pgs.c index b860b290b9..a244ac9932 100644 --- a/gst/dvdspu/gstspu-pgs.c +++ b/gst/dvdspu/gstspu-pgs.c @@ -81,8 +81,9 @@ dump_bytes (guint8 * data, guint16 len) static void dump_rle_data (GstDVDSpu * dvdspu, guint8 * data, guint32 len) { + guint16 obj_h G_GNUC_UNUSED; + guint16 obj_w; guint8 *end = data + len; - guint16 obj_w, obj_h; guint x = 0; if (data + 4 > end) @@ -175,7 +176,8 @@ pgs_composition_object_render (PgsCompositionObject * obj, SpuState * state, SpuColour *colour; guint8 *planes[3]; /* YUV frame pointers */ guint8 *data, *end; - guint16 obj_w, obj_h; + guint16 obj_w; + guint16 obj_h G_GNUC_UNUSED; guint x, y, i, min_x, max_x; if (G_UNLIKELY (obj->rle_data == NULL || obj->rle_data_size == 0 @@ -461,8 +463,8 @@ parse_set_palette (GstDVDSpu * dvdspu, guint8 type, guint8 * payload, const gint PGS_PALETTE_ENTRY_SIZE = 5; guint8 *end = payload + len; - guint8 palette_id; - guint8 palette_version; + guint8 palette_id G_GNUC_UNUSED; + guint8 palette_version G_GNUC_UNUSED; gint n_entries, i; if (len < 2) /* Palette command too short */ @@ -520,7 +522,7 @@ parse_set_window (GstDVDSpu * dvdspu, guint8 type, guint8 * payload, { SpuState *state = &dvdspu->spu_state; guint8 *end = payload + len; - guint8 win_count, win_id; + guint8 win_count, win_id G_GNUC_UNUSED; gint i; if (payload + 1 > end) diff --git a/gst/invtelecine/gstinvtelecine.c b/gst/invtelecine/gstinvtelecine.c index 50daab9ea8..8e0a5929de 100644 --- a/gst/invtelecine/gstinvtelecine.c +++ b/gst/invtelecine/gstinvtelecine.c @@ -425,7 +425,7 @@ gst_invtelecine_compare_fields_mse_ave (GstInvtelecine * invtelecine, guint8 *data2_1; guint8 *data2_2; int field_index1; - int field_index2; + int field_index2 G_GNUC_UNUSED; /* FIXME: should it be used? */ double diff; double sum; double linesum; diff --git a/gst/jpegformat/gstjpegparse.c b/gst/jpegformat/gstjpegparse.c index 1542b6ed38..64b16ae223 100644 --- a/gst/jpegformat/gstjpegparse.c +++ b/gst/jpegformat/gstjpegparse.c @@ -438,8 +438,8 @@ gst_jpeg_parse_sof (GstJpegParse * parse, GstByteReader * reader) guint8 numcomps = 0; /* Number of components in image (1 for gray, 3 for YUV, etc.) */ guint8 precision; /* precision (in bits) for the samples */ - guint8 compId[3]; /* unique value identifying each component */ - guint8 qtId[3]; /* quantization table ID to use for this comp */ + guint8 compId[3] G_GNUC_UNUSED; /* unique value identifying each component */ + guint8 qtId[3] G_GNUC_UNUSED; /* quantization table ID to use for this comp */ guint8 blockWidth[3]; /* Array[numComponents] giving the number of blocks (horiz) in this component */ guint8 blockHeight[3]; /* Same for the vertical part of this component */ @@ -464,7 +464,7 @@ gst_jpeg_parse_sof (GstJpegParse * parse, GstByteReader * reader) if (!gst_byte_reader_get_uint8 (reader, &numcomps)) return FALSE; - if (numcomps > 3) + if (numcomps > 3) /* FIXME */ return FALSE; /* Get decimation and quantization table id for each component */ diff --git a/gst/librfb/rfbdecoder.c b/gst/librfb/rfbdecoder.c index 53de8d14aa..7122e77d4f 100644 --- a/gst/librfb/rfbdecoder.c +++ b/gst/librfb/rfbdecoder.c @@ -803,8 +803,8 @@ static void rfb_decoder_hextile_encoding (RfbDecoder * decoder, gint start_x, gint start_y, gint rect_w, gint rect_h) { - gint32 x, x_count, x_end, x_max, x_max_16; - gint32 y, y_count, y_end, y_max, y_max_16; + gint32 x, x_count G_GNUC_UNUSED, x_end, x_max, x_max_16; + gint32 y, y_count G_GNUC_UNUSED, y_end, y_max, y_max_16; guint8 subencoding, nr_subrect, xy, wh; guint32 background, foreground; diff --git a/gst/mpegdemux/gstmpegtsdemux.c b/gst/mpegdemux/gstmpegtsdemux.c index 2c5c6cc1e0..986914d0c9 100644 --- a/gst/mpegdemux/gstmpegtsdemux.c +++ b/gst/mpegdemux/gstmpegtsdemux.c @@ -2253,11 +2253,11 @@ gst_mpegts_demux_parse_stream (GstMpegTSDemux * demux, GstMpegTSStream * stream, const guint8 * in_data, guint in_size) { GstFlowReturn ret; - gboolean transport_error_indicator; + gboolean transport_error_indicator G_GNUC_UNUSED; + gboolean transport_priority G_GNUC_UNUSED; gboolean payload_unit_start_indicator; - gboolean transport_priority; guint16 PID; - guint8 transport_scrambling_control; + guint8 transport_scrambling_control G_GNUC_UNUSED; guint8 adaptation_field_control; guint8 continuity_counter; const guint8 *data = in_data; diff --git a/gst/mpegdemux/gstpesfilter.c b/gst/mpegdemux/gstpesfilter.c index 736d4960b6..18d503608c 100644 --- a/gst/mpegdemux/gstpesfilter.c +++ b/gst/mpegdemux/gstpesfilter.c @@ -112,7 +112,7 @@ gst_pes_filter_parse (GstPESFilter * filter) GstFlowReturn ret; guint32 start_code; - gboolean STD_buffer_bound_scale; + gboolean STD_buffer_bound_scale G_GNUC_UNUSED; guint16 STD_buffer_size_bound; const guint8 *data; gint avail, datalen; diff --git a/gst/mpegdemux/mpegtspacketizer.c b/gst/mpegdemux/mpegtspacketizer.c index 335c985082..94ffd9472d 100644 --- a/gst/mpegdemux/mpegtspacketizer.c +++ b/gst/mpegdemux/mpegtspacketizer.c @@ -356,7 +356,8 @@ mpegts_packetizer_parse_descriptors (MpegTSPacketizer * packetizer, /* include tag and length */ desc = g_string_new_len ((gchar *) data - 2, length + 2); data += length; - /* G_TYPE_GSTING is a GBoxed type and is used so properly marshalled from python */ + /* G_TYPE_GSTRING is a GBoxed type and is used so properly marshalled from + * python (FIXME: should either be G_TYPE_STRING or GST_TYPE_BUFFFER) */ g_value_init (&value, G_TYPE_GSTRING); g_value_take_boxed (&value, desc); g_value_array_append (descriptors, &value);