ansi-ish fixes for glib, atk, gtk



i stumbled upon these when using some more strict flags to gcc.

ok to commit?

jacob
-- 
"In fact, can you imagine anything more terrifying than a zombie clown?"
	-- moby
Index: glib/glib/gmarkup.h
===================================================================
RCS file: /cvs/gnome/glib/glib/gmarkup.h,v
retrieving revision 1.6
diff -u -r1.6 gmarkup.h
--- glib/glib/gmarkup.h	2001/06/26 16:01:14	1.6
+++ glib/glib/gmarkup.h	2002/02/09 17:25:12
@@ -40,7 +40,7 @@
 
 #define G_MARKUP_ERROR g_markup_error_quark ()
 
-GQuark g_markup_error_quark ();
+GQuark g_markup_error_quark (void);
 
 typedef enum
 {
? gtk+/gdk/gdkrgb.c.flc
? gtk+/gtk/core.29960
? gtk+/gtk/gt.ltrace
? gtk+/gtk/gtkclist.patch
? gtk+/gtk/gtklabel.left.c
? gtk+/gtk/gtklayout.blame
? gtk+/gtk/gtktextview-text.patch
? gtk+/gtk/my
Index: gtk+/gdk/gdkwindow.h
===================================================================
RCS file: /cvs/gnome/gtk+/gdk/gdkwindow.h,v
retrieving revision 1.38
diff -u -r1.38 gdkwindow.h
--- gtk+/gdk/gdkwindow.h	2002/02/05 22:06:33	1.38
+++ gtk+/gdk/gdkwindow.h	2002/02/09 17:25:22
@@ -535,7 +535,7 @@
 
 GdkPointerHooks *gdk_set_pointer_hooks (const GdkPointerHooks *new_hooks);   
 
-GdkWindow *gdk_get_default_root_window ();
+GdkWindow *gdk_get_default_root_window (void);
 
 #ifndef GDK_DISABLE_DEPRECATED
 #define GDK_ROOT_PARENT()             (gdk_get_default_root_window ())
Index: gtk+/gtk/gtkitemfactory.h
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkitemfactory.h,v
retrieving revision 1.27
diff -u -r1.27 gtkitemfactory.h
--- gtk+/gtk/gtkitemfactory.h	2002/01/30 03:07:14	1.27
+++ gtk+/gtk/gtkitemfactory.h	2002/02/09 17:25:22
@@ -43,7 +43,7 @@
 					    const gchar		*str);
 typedef gchar * (*GtkTranslateFunc)	   (const gchar		*path,
 					    gpointer             func_data);
-typedef	void	(*GtkItemFactoryCallback)  ();
+typedef	void	(*GtkItemFactoryCallback)  (void);
 typedef	void	(*GtkItemFactoryCallback1) (gpointer		 callback_data,
 					    guint		 callback_action,
 					    GtkWidget		*widget);
Index: atk/atk/atkaction.h
===================================================================
RCS file: /cvs/gnome/atk/atk/atkaction.h,v
retrieving revision 1.6
diff -u -r1.6 atkaction.h
--- atk/atk/atkaction.h	2001/08/23 04:32:08	1.6
+++ atk/atk/atkaction.h	2002/02/09 17:25:41
@@ -64,7 +64,7 @@
                                                 const gchar       *desc);
 };
 
-GType atk_action_get_type ();
+GType atk_action_get_type (void);
 
 /*
  * These are the function which would be called by an application with
Index: atk/atk/atkcomponent.h
===================================================================
RCS file: /cvs/gnome/atk/atk/atkcomponent.h,v
retrieving revision 1.6
diff -u -r1.6 atkcomponent.h
--- atk/atk/atkcomponent.h	2001/08/13 16:02:43	1.6
+++ atk/atk/atkcomponent.h	2002/02/09 17:25:41
@@ -94,7 +94,7 @@
                                                  gint           height);
 };
 
-GType atk_component_get_type ();
+GType atk_component_get_type (void);
 
 /* convenience functions */
 
Index: atk/atk/atknoopobjectfactory.h
===================================================================
RCS file: /cvs/gnome/atk/atk/atknoopobjectfactory.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 atknoopobjectfactory.h
--- atk/atk/atknoopobjectfactory.h	2001/04/26 14:23:40	1.1.1.1
+++ atk/atk/atknoopobjectfactory.h	2002/02/09 17:25:41
@@ -46,9 +46,9 @@
   AtkObjectFactoryClass parent_class;
 };
 
-GType atk_no_op_object_factory_get_type();
+GType atk_no_op_object_factory_get_type(void);
 
-AtkObjectFactory *atk_no_op_object_factory_new();
+AtkObjectFactory *atk_no_op_object_factory_new(void);
 
 #ifdef __cplusplus
 }
Index: atk/atk/atkobjectfactory.h
===================================================================
RCS file: /cvs/gnome/atk/atk/atkobjectfactory.h,v
retrieving revision 1.2
diff -u -r1.2 atkobjectfactory.h
--- atk/atk/atkobjectfactory.h	2001/12/19 12:34:24	1.2
+++ atk/atk/atkobjectfactory.h	2002/02/09 17:25:41
@@ -51,7 +51,7 @@
   GType      (* get_accessible_type)    (void);
 };
 
-GType atk_object_factory_get_type();
+GType atk_object_factory_get_type(void);
 
 AtkObject* atk_object_factory_create_accessible (AtkObjectFactory *factory, GObject *obj);
 void       atk_object_factory_invalidate (AtkObjectFactory *factory);
Index: atk/atk/atkregistry.h
===================================================================
RCS file: /cvs/gnome/atk/atk/atkregistry.h,v
retrieving revision 1.3
diff -u -r1.3 atkregistry.h
--- atk/atk/atkregistry.h	2001/06/06 07:21:01	1.3
+++ atk/atk/atkregistry.h	2002/02/09 17:25:41
@@ -59,7 +59,7 @@
 AtkObjectFactory* atk_registry_get_factory      (AtkRegistry *registry,
                                                  GType type);
 
-AtkRegistry*      atk_get_default_registry      ();
+AtkRegistry*      atk_get_default_registry      (void);
 
 #ifdef __cplusplus
 }
Index: atk/atk/atkselection.h
===================================================================
RCS file: /cvs/gnome/atk/atk/atkselection.h,v
retrieving revision 1.6
diff -u -r1.6 atkselection.h
--- atk/atk/atkselection.h	2001/11/17 11:56:01	1.6
+++ atk/atk/atkselection.h	2002/02/09 17:25:41
@@ -65,7 +65,7 @@
   void         (*selection_changed)     (AtkSelection   *selection);
 
 };
-GType atk_selection_get_type ();
+GType atk_selection_get_type (void);
 
 gboolean     atk_selection_add_selection        (AtkSelection   *selection,
                                                  gint           i);
Index: atk/atk/atktable.h
===================================================================
RCS file: /cvs/gnome/atk/atk/atktable.h,v
retrieving revision 1.11
diff -u -r1.11 atktable.h
--- atk/atk/atktable.h	2001/11/17 11:56:01	1.11
+++ atk/atk/atktable.h	2002/02/09 17:25:41
@@ -134,7 +134,7 @@
   void              (* model_changed)            (AtkTable      *table);
 };
 
-GType atk_table_get_type ();
+GType atk_table_get_type (void);
 
 AtkObject*        atk_table_ref_at               (AtkTable         *table,
                                                   gint             row,


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