Fix more void prototypes in tests
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 2 Nov 2012 15:19:32 +0000 (15:19 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 2 Nov 2012 16:14:11 +0000 (16:14 +0000)
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=687441
Reviewed-by: Colin Walters <walters@verbum.org>
tests/gobject/ifaceinherit.c
tests/gobject/performance.c

index 38885d5..7de658b 100644 (file)
@@ -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
index 053538f..e9310a5 100644 (file)
@@ -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;
 }