jpegenc: pulsesink: raw1394: Address unused but set variables

GCC 4.6.x spits warnings about such usage of variables. The variables in
raw1394 were marked with G_GNUC_UNUSED as this seemed omre appropriate.
The others were removed.
This commit is contained in:
Robert Swain 2011-04-15 15:14:13 +02:00 committed by Tim-Philipp Müller
parent b5c8c7708b
commit 098cf89e34
4 changed files with 3 additions and 12 deletions

View file

@ -547,7 +547,7 @@ gst_jpegenc_chain (GstPad * pad, GstBuffer * buf)
GstJpegEnc *jpegenc;
guchar *data;
gulong size;
guint height, width;
guint height;
guchar *base[3], *end[3];
gint i, j, k;
@ -572,7 +572,6 @@ gst_jpegenc_chain (GstPad * pad, GstBuffer * buf)
gst_buffer_copy_metadata (jpegenc->output_buffer, buf,
GST_BUFFER_COPY_TIMESTAMPS);
width = jpegenc->width;
height = jpegenc->height;
for (i = 0; i < jpegenc->channels; i++) {

View file

@ -941,10 +941,8 @@ connect_failed:
static gboolean
gst_pulseringbuffer_release (GstRingBuffer * buf)
{
GstPulseSink *psink;
GstPulseRingBuffer *pbuf;
psink = GST_PULSESINK_CAST (GST_OBJECT_PARENT (buf));
pbuf = GST_PULSERING_BUFFER_CAST (buf);
pa_threaded_mainloop_lock (mainloop);
@ -957,12 +955,6 @@ gst_pulseringbuffer_release (GstRingBuffer * buf)
static void
gst_pulsering_success_cb (pa_stream * s, int success, void *userdata)
{
GstPulseRingBuffer *pbuf;
GstPulseSink *psink;
pbuf = GST_PULSERING_BUFFER_CAST (userdata);
psink = GST_PULSESINK_CAST (GST_OBJECT_PARENT (pbuf));
pa_threaded_mainloop_signal (mainloop, 0);
}

View file

@ -66,7 +66,7 @@
#define SEND_COMMAND(src, command) \
G_STMT_START { \
int _res; unsigned char c; c = command; \
int G_GNUC_UNUSED _res; unsigned char c; c = command; \
_res = write (WRITE_SOCKET(src), &c, 1); \
} G_STMT_END

View file

@ -62,7 +62,7 @@
#define SEND_COMMAND(src, command) \
G_STMT_START { \
int _res; unsigned char c; c = command; \
int G_GNUC_UNUSED _res; unsigned char c; c = command; \
_res = write (WRITE_SOCKET(src), &c, 1); \
} G_STMT_END