]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix a few warnings that appear with -Wextra (unused parameters where WXUNUSED is...
authorMart Raudsepp <leio@gentoo.org>
Tue, 19 Sep 2006 11:35:41 +0000 (11:35 +0000)
committerMart Raudsepp <leio@gentoo.org>
Tue, 19 Sep 2006 11:35:41 +0000 (11:35 +0000)
for the same function, and some GTypeInfo initializations)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dnd.cpp
src/gtk/toplevel.cpp
src/gtk/treeentry_gtk.c
src/gtk/win_gtk.c

index 7565e877badfd21c90e690e25e26813639933a6e..6ef44f891a2bb405b016da6016b844d7de6399b6 100644 (file)
@@ -655,7 +655,7 @@ source_drag_data_get  (GtkWidget          *WXUNUSED(widget),
 
 extern "C" {
 static void source_drag_data_delete( GtkWidget *WXUNUSED(widget),
-                                     GdkDragContext *context,
+                                     GdkDragContext *WXUNUSED(context),
                                      wxDropSource *WXUNUSED(drop_source) )
 {
     if (g_isIdle)
index 33ef92100e65caacc22ca1fcc194efee4c346fc3..7b883348dc14c7bb0be924447f3aadde2a5deccb 100644 (file)
@@ -202,7 +202,9 @@ static gboolean gtk_frame_focus_out_callback( GtkWidget *widget,
 //-----------------------------------------------------------------------------
 
 extern "C" {
-static gboolean gtk_frame_focus_callback( GtkWidget *widget, GtkDirectionType WXUNUSED(d), wxWindow *WXUNUSED(win) )
+static gboolean gtk_frame_focus_callback( GtkWidget *WXUNUSED(widget),
+                                          GtkDirectionType WXUNUSED(d),
+                                          wxWindow *WXUNUSED(win) )
 {
     if (g_isIdle)
         wxapp_install_idle_handler();
index c3243ce08f348a9048f82047cc2bf9bc6e825903..ce8954cb35ae7d9cd5e5a7507dcb96bd0c2a8e0d 100644 (file)
@@ -56,7 +56,8 @@ gtk_tree_entry_get_type ()
             NULL,           /* class_data */
             sizeof (GtkTreeEntry),
             16,             /* n_preallocs */
-            (GInstanceInitFunc) gtk_tree_entry_init /*instance_init*/
+            (GInstanceInitFunc) gtk_tree_entry_init, /*instance_init*/
+            NULL            /* value_table */
         };
         tree_entry_type = g_type_register_static (G_TYPE_OBJECT, "GtkTreeEntry",
                                                   &tree_entry_info,
index 6115bc3a337fcddfcf8be76bc824937639ad8c49..c827c087ea4771cba6cc6e046bacb02d7a1d5911 100644 (file)
@@ -84,6 +84,7 @@ gtk_pizza_get_type ()
             sizeof (GtkPizza),
             16,             /* n_preallocs */
             (GInstanceInitFunc) gtk_pizza_init,
+            NULL
         };
         pizza_type = g_type_register_static (GTK_TYPE_CONTAINER, "GtkPizza", &pizza_info, (GTypeFlags)0);
     }