From 733acc23164e4845b6c990c0881290da568d3730 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 2 Nov 2012 15:19:32 +0000 Subject: [PATCH] Fix more void prototypes in tests Bug: https://bugzilla.gnome.org/show_bug.cgi?id=687441 Reviewed-by: Colin Walters --- tests/gobject/ifaceinherit.c | 4 ++-- tests/gobject/performance.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/gobject/ifaceinherit.c b/tests/gobject/ifaceinherit.c index 38885d5a6..7de658beb 100644 --- a/tests/gobject/ifaceinherit.c +++ b/tests/gobject/ifaceinherit.c @@ -64,8 +64,8 @@ struct _BaseObjectClass GObjectClass parent_class; }; -static GType base_object_get_type (); -static GType derived_object_get_type (); +static GType base_object_get_type (void); +static GType derived_object_get_type (void); /* * DerivedObject, the child class of DerivedObject diff --git a/tests/gobject/performance.c b/tests/gobject/performance.c index 053538f27..e9310a587 100644 --- a/tests/gobject/performance.c +++ b/tests/gobject/performance.c @@ -442,7 +442,7 @@ test_construction_setup (PerformanceTest *test) struct ConstructionTest *data; data = g_new0 (struct ConstructionTest, 1); - data->type = ((GType (*)())test->extra_data)(); + data->type = ((GType (*)(void))test->extra_data)(); return data; }