Fix a few warnings that appear with -Wextra (unused parameters where WXUNUSED is already used for other parameters

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
This commit is contained in:
Mart Raudsepp
2006-09-19 11:35:41 +00:00
parent 2121eb69fa
commit 4eb8ef2d43
4 changed files with 7 additions and 3 deletions

View 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)

View 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();

View 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,

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