[gtk+] Shut up warning about calling gtk_object_get_type() having no	effect
- From: Michael Natterer <mitch src gnome org>
 
- To: svn-commits-list gnome org
 
- Cc: 
 
- Subject: [gtk+] Shut up warning about calling gtk_object_get_type() having no	effect
 
- Date: Tue, 18 Aug 2009 10:11:05 +0000 (UTC)
 
commit 9c151ba3e1d9f2fcf3f8aa5ab0d46ef4c9642ed8
Author: Michael Natterer <mitch gimp org>
Date:   Tue Aug 18 12:10:03 2009 +0200
    Shut up warning about calling gtk_object_get_type() having no effect
 gtk/gtktypeutils.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktypeutils.c b/gtk/gtktypeutils.c
index 986f9ff..6047d6f 100644
--- a/gtk/gtktypeutils.c
+++ b/gtk/gtktypeutils.c
@@ -125,6 +125,8 @@ gtk_type_init (GTypeDebugFlags debug_flags)
   
   if (!initialized)
     {
+      GType unused;
+
       initialized = TRUE;
 
       /* initialize GLib type system
@@ -133,7 +135,7 @@ gtk_type_init (GTypeDebugFlags debug_flags)
       
       /* GTK_TYPE_OBJECT
        */
-      gtk_object_get_type ();
+      unused = gtk_object_get_type ();
     }
 }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]