summaryrefslogtreecommitdiff
path: root/sys/shm
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2011-05-18 15:44:06 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2011-05-18 16:49:26 -0400
commit58ee65fe20ce6fd736b340880702252084c4cbf8 (patch)
tree5877e844226ddcb27e5120b995240f9648e5719e /sys/shm
parenta898d147ba84ad9bcfceac9e86c171155e36d3b3 (diff)
downloadgstreamer-plugins-bad-58ee65fe20ce6fd736b340880702252084c4cbf8.tar.gz
shm: Make gcc 4.6 happy
Remove warnings due to initialized but never used warnings
Diffstat (limited to 'sys/shm')
-rw-r--r--sys/shm/gstshmsink.c2
-rw-r--r--sys/shm/shmpipe.c7
2 files changed, 1 insertions, 8 deletions
diff --git a/sys/shm/gstshmsink.c b/sys/shm/gstshmsink.c
index 02a67a831..a7d7e5207 100644
--- a/sys/shm/gstshmsink.c
+++ b/sys/shm/gstshmsink.c
@@ -118,11 +118,9 @@ static void
gst_shm_sink_class_init (GstShmSinkClass * klass)
{
GObjectClass *gobject_class;
- GstElementClass *gstelement_class;
GstBaseSinkClass *gstbasesink_class;
gobject_class = (GObjectClass *) klass;
- gstelement_class = (GstElementClass *) klass;
gstbasesink_class = (GstBaseSinkClass *) klass;
gobject_class->finalize = gst_shm_sink_finalize;
diff --git a/sys/shm/shmpipe.c b/sys/shm/shmpipe.c
index 38711f9f3..c629ea05c 100644
--- a/sys/shm/shmpipe.c
+++ b/sys/shm/shmpipe.c
@@ -621,7 +621,7 @@ long int
sp_client_recv (ShmPipe * self, char **buf)
{
char *area_name = NULL;
- ShmArea *newarea, *oldarea;
+ ShmArea *newarea;
ShmArea *area;
struct CommandBuffer cb;
int retval;
@@ -648,13 +648,8 @@ sp_client_recv (ShmPipe * self, char **buf)
if (!newarea)
return -4;
- oldarea = self->shm_area;
newarea->next = self->shm_area;
self->shm_area = newarea;
- /*
- if (oldarea)
- sp_shm_area_dec (self, oldarea);
- */
break;
case COMMAND_CLOSE_SHM_AREA: