shm: Make gcc 4.6 happy

Remove warnings due to initialized but never used warnings
This commit is contained in:
Olivier Crête 2011-05-18 15:44:06 -04:00
parent a898d147ba
commit 58ee65fe20
2 changed files with 1 additions and 8 deletions

View file

@ -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;

View file

@ -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: