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:
@@ -655,7 +655,7 @@ source_drag_data_get (GtkWidget *WXUNUSED(widget),
|
|||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
static void source_drag_data_delete( GtkWidget *WXUNUSED(widget),
|
static void source_drag_data_delete( GtkWidget *WXUNUSED(widget),
|
||||||
GdkDragContext *context,
|
GdkDragContext *WXUNUSED(context),
|
||||||
wxDropSource *WXUNUSED(drop_source) )
|
wxDropSource *WXUNUSED(drop_source) )
|
||||||
{
|
{
|
||||||
if (g_isIdle)
|
if (g_isIdle)
|
||||||
|
@@ -202,7 +202,9 @@ static gboolean gtk_frame_focus_out_callback( GtkWidget *widget,
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
extern "C" {
|
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)
|
if (g_isIdle)
|
||||||
wxapp_install_idle_handler();
|
wxapp_install_idle_handler();
|
||||||
|
@@ -56,7 +56,8 @@ gtk_tree_entry_get_type ()
|
|||||||
NULL, /* class_data */
|
NULL, /* class_data */
|
||||||
sizeof (GtkTreeEntry),
|
sizeof (GtkTreeEntry),
|
||||||
16, /* n_preallocs */
|
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_type = g_type_register_static (G_TYPE_OBJECT, "GtkTreeEntry",
|
||||||
&tree_entry_info,
|
&tree_entry_info,
|
||||||
|
@@ -84,6 +84,7 @@ gtk_pizza_get_type ()
|
|||||||
sizeof (GtkPizza),
|
sizeof (GtkPizza),
|
||||||
16, /* n_preallocs */
|
16, /* n_preallocs */
|
||||||
(GInstanceInitFunc) gtk_pizza_init,
|
(GInstanceInitFunc) gtk_pizza_init,
|
||||||
|
NULL
|
||||||
};
|
};
|
||||||
pizza_type = g_type_register_static (GTK_TYPE_CONTAINER, "GtkPizza", &pizza_info, (GTypeFlags)0);
|
pizza_type = g_type_register_static (GTK_TYPE_CONTAINER, "GtkPizza", &pizza_info, (GTypeFlags)0);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user