bayer: fix unused-but-set-variable warnings with gcc 4.6

This commit is contained in:
Tim-Philipp Müller 2011-04-14 18:36:02 +01:00
parent 3f7ab0b319
commit 276a1390c5

View file

@ -30,13 +30,6 @@
#define GST_CAT_DEFAULT gst_rgb2bayer_debug
GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
/* prototypes */
static void gst_rgb2bayer_set_property (GObject * object,
guint property_id, const GValue * value, GParamSpec * pspec);
static void gst_rgb2bayer_get_property (GObject * object,
guint property_id, GValue * value, GParamSpec * pspec);
static void gst_rgb2bayer_dispose (GObject * object);
static void gst_rgb2bayer_finalize (GObject * object);
@ -57,13 +50,6 @@ static GstFlowReturn gst_rgb2bayer_transform (GstBaseTransform * trans,
static gboolean gst_rgb2bayer_src_event (GstBaseTransform * trans,
GstEvent * event);
enum
{
PROP_0
};
/* pad templates */
static GstStaticPadTemplate gst_rgb2bayer_sink_template =
GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
@ -125,8 +111,6 @@ gst_rgb2bayer_class_init (GstRGB2BayerClass * klass)
GstBaseTransformClass *base_transform_class =
GST_BASE_TRANSFORM_CLASS (klass);
gobject_class->set_property = gst_rgb2bayer_set_property;
gobject_class->get_property = gst_rgb2bayer_get_property;
gobject_class->dispose = gst_rgb2bayer_dispose;
gobject_class->finalize = gst_rgb2bayer_finalize;
base_transform_class->transform_caps =
@ -149,61 +133,15 @@ gst_rgb2bayer_init (GstRGB2Bayer * rgb2bayer,
}
void
gst_rgb2bayer_set_property (GObject * object, guint property_id,
const GValue * value, GParamSpec * pspec)
{
GstRGB2Bayer *rgb2bayer;
g_return_if_fail (GST_IS_RGB_2_BAYER (object));
rgb2bayer = GST_RGB_2_BAYER (object);
switch (property_id) {
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
}
}
void
gst_rgb2bayer_get_property (GObject * object, guint property_id,
GValue * value, GParamSpec * pspec)
{
GstRGB2Bayer *rgb2bayer;
g_return_if_fail (GST_IS_RGB_2_BAYER (object));
rgb2bayer = GST_RGB_2_BAYER (object);
switch (property_id) {
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
}
}
void
gst_rgb2bayer_dispose (GObject * object)
{
GstRGB2Bayer *rgb2bayer;
g_return_if_fail (GST_IS_RGB_2_BAYER (object));
rgb2bayer = GST_RGB_2_BAYER (object);
/* clean up as possible. may be called multiple times */
G_OBJECT_CLASS (parent_class)->dispose (object);
}
void
gst_rgb2bayer_finalize (GObject * object)
{
GstRGB2Bayer *rgb2bayer;
g_return_if_fail (GST_IS_RGB_2_BAYER (object));
rgb2bayer = GST_RGB_2_BAYER (object);
/* clean up object here */
G_OBJECT_CLASS (parent_class)->finalize (object);
}