From: Simon McVittie Date: Fri, 2 Nov 2012 15:19:32 +0000 (+0000) Subject: Fix more void prototypes in tests X-Git-Tag: 2.35.2~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=733acc23164e4845b6c990c0881290da568d3730;p=platform%2Fupstream%2Fglib.git Fix more void prototypes in tests Bug: https://bugzilla.gnome.org/show_bug.cgi?id=687441 Reviewed-by: Colin Walters --- diff --git a/tests/gobject/ifaceinherit.c b/tests/gobject/ifaceinherit.c index 38885d5..7de658b 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 053538f..e9310a5 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; }