summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-03-22 16:56:03 +0100
committerBenjamin Otte <otte@redhat.com>2010-03-22 16:56:03 +0100
commit240f494aa7171e8ba08addc43e4b458b73c1615b (patch)
tree54e2c8079b63dbec1d467b09971119140d2a10e0 /tests
parent647cf64c01ff63cca5699b827fa769bbfd944ca3 (diff)
Add -Wold-style-definition
and fix the warnings
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/amrparse.c2
-rw-r--r--tests/check/elements/capssetter.c2
-rw-r--r--tests/check/generic/states.c4
-rw-r--r--tests/examples/camerabin/gst-camera.c20
-rw-r--r--tests/examples/directfb/gstdfb.c2
-rw-r--r--tests/icles/metadata_editor.c9
6 files changed, 20 insertions, 19 deletions
diff --git a/tests/check/elements/amrparse.c b/tests/check/elements/amrparse.c
index be974445b..4c6457d25 100644
--- a/tests/check/elements/amrparse.c
+++ b/tests/check/elements/amrparse.c
@@ -621,7 +621,7 @@ GST_END_TEST;
* Create test suite.
*/
static Suite *
-amrparse_suite ()
+amrparse_suite (void)
{
Suite *s = suite_create ("amrparse");
TCase *tc_chain = tcase_create ("general");
diff --git a/tests/check/elements/capssetter.c b/tests/check/elements/capssetter.c
index c11ad4cda..0a6986bed 100644
--- a/tests/check/elements/capssetter.c
+++ b/tests/check/elements/capssetter.c
@@ -114,7 +114,7 @@ push_and_test (GstCaps * prop_caps, gboolean join, gboolean replace,
#define SRC_HEIGHT 12
static GstCaps *
-make_src_caps ()
+make_src_caps (void)
{
return gst_caps_new_simple ("video/x-raw-yuv", "width", G_TYPE_INT, SRC_WIDTH,
"height", G_TYPE_INT, SRC_HEIGHT, NULL);
diff --git a/tests/check/generic/states.c b/tests/check/generic/states.c
index feaf0f017..da69ac96c 100644
--- a/tests/check/generic/states.c
+++ b/tests/check/generic/states.c
@@ -31,7 +31,7 @@
static GList *elements = NULL;
static void
-setup ()
+setup (void)
{
GList *features, *f;
GList *plugins, *p;
@@ -88,7 +88,7 @@ setup ()
}
static void
-teardown ()
+teardown (void)
{
GList *e;
diff --git a/tests/examples/camerabin/gst-camera.c b/tests/examples/camerabin/gst-camera.c
index 3082a0ff5..d31699abe 100644
--- a/tests/examples/camerabin/gst-camera.c
+++ b/tests/examples/camerabin/gst-camera.c
@@ -608,7 +608,7 @@ me_gst_setup_default_pipeline (gpointer data)
}
static void
-me_gst_cleanup_element ()
+me_gst_cleanup_element (void)
{
if (gst_camera_bin) {
GstBus *bus;
@@ -630,7 +630,7 @@ me_gst_cleanup_element ()
}
static gboolean
-capture_mode_stop ()
+capture_mode_stop (void)
{
if (capture_state == CAP_STATE_VIDEO_PAUSED
|| capture_state == CAP_STATE_VIDEO_RECORDING) {
@@ -641,7 +641,7 @@ capture_mode_stop ()
}
static void
-capture_mode_config_gui ()
+capture_mode_config_gui (void)
{
switch (capture_state) {
case CAP_STATE_IMAGE:
@@ -1193,7 +1193,7 @@ fill_resolution_combo (GstCaps * caps)
}
static GstCaps *
-create_default_caps ()
+create_default_caps (void)
{
GstCaps *default_caps;
@@ -1203,7 +1203,7 @@ create_default_caps ()
}
static void
-init_view_finder_resolution_combobox ()
+init_view_finder_resolution_combobox (void)
{
GstCaps *input_caps = NULL, *default_caps = NULL, *intersect = NULL;
@@ -1230,7 +1230,7 @@ init_view_finder_resolution_combobox ()
}
static void
-destroy_color_controls ()
+destroy_color_controls (void)
{
GList *widgets, *item;
GtkWidget *widget = NULL;
@@ -1250,7 +1250,7 @@ destroy_color_controls ()
}
static void
-create_color_controls ()
+create_color_controls (void)
{
GstColorBalance *balance = NULL;
const GList *controls, *item;
@@ -1487,7 +1487,7 @@ add_menuitem (GtkMenu * parent_menu, const gchar * item_name)
}
GList *
-create_iso_speed_labels ()
+create_iso_speed_labels (void)
{
GList *labels = NULL;
gint i;
@@ -1498,7 +1498,7 @@ create_iso_speed_labels ()
}
GList *
-create_ev_comp_labels ()
+create_ev_comp_labels (void)
{
GList *labels = NULL;
gdouble comp;
@@ -1568,7 +1568,7 @@ capture_image_res_toggled_cb (GtkRadioMenuItem * menuitem, gpointer user_data)
}
GList *
-create_image_resolution_labels ()
+create_image_resolution_labels (void)
{
GList *labels = NULL;
int i;
diff --git a/tests/examples/directfb/gstdfb.c b/tests/examples/directfb/gstdfb.c
index 675e5e23c..dcbc4bd8a 100644
--- a/tests/examples/directfb/gstdfb.c
+++ b/tests/examples/directfb/gstdfb.c
@@ -57,7 +57,7 @@ typedef struct
} dyn_link;
static inline long
-myclock ()
+myclock (void)
{
struct timeval tv;
diff --git a/tests/icles/metadata_editor.c b/tests/icles/metadata_editor.c
index e8b93fff3..343b31c4b 100644
--- a/tests/icles/metadata_editor.c
+++ b/tests/icles/metadata_editor.c
@@ -735,7 +735,7 @@ done:
}
static void
-ui_refresh ()
+ui_refresh (void)
{
GtkTreeStore *store =
GTK_TREE_STORE (gtk_tree_view_get_model (GTK_TREE_VIEW (ui_tree)));
@@ -745,7 +745,7 @@ ui_refresh ()
}
static int
-ui_create ()
+ui_create (void)
{
GError *error = NULL;
int ret = 0;
@@ -944,7 +944,7 @@ me_gst_bus_callback_view (GstBus * bus, GstMessage * message, gpointer data)
}
static void
-me_gst_cleanup_elements ()
+me_gst_cleanup_elements (void)
{
/* when adding an element to pipeline rember to set it to NULL or add extra ref */
@@ -1291,7 +1291,8 @@ done:
}
static void
-process_file() {
+process_file(void)
+{
/* filename for future usage (title and file name to be created) */
me_gst_cleanup_elements ();