mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-13 01:46:24 +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
|
@ -118,11 +118,9 @@ static void
|
||||||
gst_shm_sink_class_init (GstShmSinkClass * klass)
|
gst_shm_sink_class_init (GstShmSinkClass * klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class;
|
GObjectClass *gobject_class;
|
||||||
GstElementClass *gstelement_class;
|
|
||||||
GstBaseSinkClass *gstbasesink_class;
|
GstBaseSinkClass *gstbasesink_class;
|
||||||
|
|
||||||
gobject_class = (GObjectClass *) klass;
|
gobject_class = (GObjectClass *) klass;
|
||||||
gstelement_class = (GstElementClass *) klass;
|
|
||||||
gstbasesink_class = (GstBaseSinkClass *) klass;
|
gstbasesink_class = (GstBaseSinkClass *) klass;
|
||||||
|
|
||||||
gobject_class->finalize = gst_shm_sink_finalize;
|
gobject_class->finalize = gst_shm_sink_finalize;
|
||||||
|
|
|
@ -621,7 +621,7 @@ long int
|
||||||
sp_client_recv (ShmPipe * self, char **buf)
|
sp_client_recv (ShmPipe * self, char **buf)
|
||||||
{
|
{
|
||||||
char *area_name = NULL;
|
char *area_name = NULL;
|
||||||
ShmArea *newarea, *oldarea;
|
ShmArea *newarea;
|
||||||
ShmArea *area;
|
ShmArea *area;
|
||||||
struct CommandBuffer cb;
|
struct CommandBuffer cb;
|
||||||
int retval;
|
int retval;
|
||||||
|
@ -648,13 +648,8 @@ sp_client_recv (ShmPipe * self, char **buf)
|
||||||
if (!newarea)
|
if (!newarea)
|
||||||
return -4;
|
return -4;
|
||||||
|
|
||||||
oldarea = self->shm_area;
|
|
||||||
newarea->next = self->shm_area;
|
newarea->next = self->shm_area;
|
||||||
self->shm_area = newarea;
|
self->shm_area = newarea;
|
||||||
/*
|
|
||||||
if (oldarea)
|
|
||||||
sp_shm_area_dec (self, oldarea);
|
|
||||||
*/
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case COMMAND_CLOSE_SHM_AREA:
|
case COMMAND_CLOSE_SHM_AREA:
|
||||||
|
|
Loading…
Reference in a new issue