mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
shm: Make gcc 4.6 happy
Remove warnings due to initialized but never used warnings
This commit is contained in:
parent
a898d147ba
commit
58ee65fe20
2 changed files with 1 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue