[glib] Fix more void prototypes in tests



commit 733acc23164e4845b6c990c0881290da568d3730
Author: Simon McVittie <simon mcvittie collabora co uk>
Date:   Fri Nov 2 15:19:32 2012 +0000

    Fix more void prototypes in tests
    
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=687441
    Reviewed-by: Colin Walters <walters verbum org>

 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 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;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]