diff options
author | Benjamin Otte <otte@redhat.com> | 2010-03-17 18:23:00 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-03-17 18:23:28 +0100 |
commit | 3342b1679e3f08976a76726ef05ac1dee08cbe3a (patch) | |
tree | b645889694e6bec580ec15a872180b285f92e804 /sys | |
parent | 7e363149f323f745b4147aa469208bdbb8465db6 (diff) |
Add -Wmissing-declarations -Wmissing-prototypes warning flags
And fix all the warnings.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/v4l2/gstv4l2colorbalance.h | 2 | ||||
-rw-r--r-- | sys/v4l2/gstv4l2object.c | 2 | ||||
-rw-r--r-- | sys/v4l2/gstv4l2sink.c | 2 | ||||
-rw-r--r-- | sys/v4l2/gstv4l2src.c | 2 | ||||
-rw-r--r-- | sys/v4l2/gstv4l2tuner.h | 2 | ||||
-rw-r--r-- | sys/v4l2/gstv4l2vidorient.h | 2 | ||||
-rw-r--r-- | sys/ximage/ximageutil.c | 6 |
7 files changed, 9 insertions, 9 deletions
diff --git a/sys/v4l2/gstv4l2colorbalance.h b/sys/v4l2/gstv4l2colorbalance.h index d1cd62157..9e183f014 100644 --- a/sys/v4l2/gstv4l2colorbalance.h +++ b/sys/v4l2/gstv4l2colorbalance.h @@ -90,7 +90,7 @@ interface_as_function ## _color_balance_get_value (GstColorBalance * balance, return gst_v4l2_color_balance_get_value(this->v4l2object, channel); \ } \ \ -void \ +static void \ interface_as_function ## _color_balance_interface_init (GstColorBalanceClass * klass) \ { \ GST_COLOR_BALANCE_TYPE (klass) = GST_COLOR_BALANCE_HARDWARE; \ diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index 04d2ad09d..7d9409e7b 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -282,7 +282,7 @@ gst_v4l2_probe_get_values (GstPropertyProbe * probe, } #define GST_TYPE_V4L2_DEVICE_FLAGS (gst_v4l2_device_get_type ()) -GType +static GType gst_v4l2_device_get_type (void) { static GType v4l2_device_type = 0; diff --git a/sys/v4l2/gstv4l2sink.c b/sys/v4l2/gstv4l2sink.c index d2d5cb342..26773be7a 100644 --- a/sys/v4l2/gstv4l2sink.c +++ b/sys/v4l2/gstv4l2sink.c @@ -119,7 +119,7 @@ gst_v4l2sink_interface_init (GstImplementsInterfaceClass * klass) klass->supported = gst_v4l2sink_iface_supported; } -void +static void gst_v4l2sink_init_interfaces (GType type) { static const GInterfaceInfo v4l2iface_info = { diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c index 7dd773716..81346d7e0 100644 --- a/sys/v4l2/gstv4l2src.c +++ b/sys/v4l2/gstv4l2src.c @@ -128,7 +128,7 @@ gst_v4l2src_interface_init (GstImplementsInterfaceClass * klass) klass->supported = gst_v4l2src_iface_supported; } -void +static void gst_v4l2src_init_interfaces (GType type) { static const GInterfaceInfo urihandler_info = { diff --git a/sys/v4l2/gstv4l2tuner.h b/sys/v4l2/gstv4l2tuner.h index 5ec2b67e1..bf9ff94da 100644 --- a/sys/v4l2/gstv4l2tuner.h +++ b/sys/v4l2/gstv4l2tuner.h @@ -173,7 +173,7 @@ interface_as_function ## _tuner_signal_strength (GstTuner * mixer, return gst_v4l2_tuner_signal_strength (this->v4l2object, channel); \ } \ \ -void \ +static void \ interface_as_function ## _tuner_interface_init (GstTunerClass * klass) \ { \ /* default virtual functions */ \ diff --git a/sys/v4l2/gstv4l2vidorient.h b/sys/v4l2/gstv4l2vidorient.h index 965fc0597..39682e2f1 100644 --- a/sys/v4l2/gstv4l2vidorient.h +++ b/sys/v4l2/gstv4l2vidorient.h @@ -100,7 +100,7 @@ gboolean gst_v4l2_video_orientation_set_vcenter (GstV4l2Object *v4l2object, gint return gst_v4l2_video_orientation_set_vcenter (this->v4l2object, center); \ } \ \ - void \ + static void \ interface_as_function ## _video_orientation_interface_init (GstVideoOrientationInterface * klass) \ { \ /* default virtual functions */ \ diff --git a/sys/ximage/ximageutil.c b/sys/ximage/ximageutil.c index e0d2c32ce..0ef4b06c5 100644 --- a/sys/ximage/ximageutil.c +++ b/sys/ximage/ximageutil.c @@ -316,8 +316,8 @@ gst_ximagesrc_buffer_finalize (GstXImageSrcBuffer * ximage) beach: - GST_MINI_OBJECT_CLASS (ximagesrc_buffer_parent_class)-> - finalize (GST_MINI_OBJECT (ximage)); + GST_MINI_OBJECT_CLASS (ximagesrc_buffer_parent_class)->finalize + (GST_MINI_OBJECT (ximage)); return; } @@ -351,7 +351,7 @@ gst_ximagesrc_buffer_class_init (gpointer g_class, gpointer class_data) gst_ximagesrc_buffer_finalize; } -GType +static GType gst_ximagesrc_buffer_get_type (void) { static GType _gst_ximagesrc_buffer_type; |