Commit 367dfee3 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Fix unused variable warnings

These happen for variables which are only used
in assertions, when assertions are disabled.
parent 5e7b5fe0
......@@ -1420,7 +1420,7 @@ gtk_at_spi_context_get_property (GObject *gobject,
static void
gtk_at_spi_context_constructed (GObject *gobject)
{
GtkAtSpiContext *self = GTK_AT_SPI_CONTEXT (gobject);
GtkAtSpiContext *self G_GNUC_UNUSED = GTK_AT_SPI_CONTEXT (gobject);
/* Make sure that we were properly constructed */
g_assert (self->bus_address);
......
......@@ -369,7 +369,7 @@ apply_response_for_action_area (GtkDialog *dialog,
GtkWidget *child,
int response_id)
{
GtkDialogPrivate *priv = gtk_dialog_get_instance_private (dialog);
GtkDialogPrivate *priv G_GNUC_UNUSED = gtk_dialog_get_instance_private (dialog);
g_assert (gtk_widget_get_parent (child) == priv->action_area);
}
......
......@@ -1935,9 +1935,9 @@ gtk_expression_watch_ref (GtkExpressionWatch *watch)
static void
gtk_expression_watch_finalize (gpointer data)
{
GtkExpressionWatch *watch = data;
GtkExpressionWatch *watch G_GNUC_UNUSED = data;
g_assert (!gtk_expression_watch_is_watching (watch));
g_assert (!gtk_expression_watch_is_watching (data));
}
/**
......
......@@ -104,7 +104,7 @@ gtk_list_item_manager_augment_node (GtkRbTree *tree,
static void
gtk_list_item_manager_clear_node (gpointer _item)
{
GtkListItemManagerItem *item = _item;
GtkListItemManagerItem *item G_GNUC_UNUSED = _item;
g_assert (item->widget == NULL);
}
......
......@@ -320,7 +320,7 @@ static void
gtk_settings_class_init (GtkSettingsClass *class)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (class);
guint result;
guint result G_GNUC_UNUSED;
gobject_class->finalize = gtk_settings_finalize;
gobject_class->get_property = gtk_settings_get_property;
......
......@@ -882,7 +882,7 @@ gtk_signal_action_print (GtkShortcutAction *action,
static void
gtk_signal_action_constructed (GObject *gobject)
{
GtkSignalAction *self = GTK_SIGNAL_ACTION (gobject);
GtkSignalAction *self G_GNUC_UNUSED = GTK_SIGNAL_ACTION (gobject);
g_assert (self->name != NULL && self->name[0] != '\0');
......@@ -1162,7 +1162,7 @@ gtk_named_action_get_property (GObject *gobject,
static void
gtk_named_action_constructed (GObject *gobject)
{
GtkNamedAction *self = GTK_NAMED_ACTION (gobject);
GtkNamedAction *self G_GNUC_UNUSED = GTK_NAMED_ACTION (gobject);
g_assert (self->name != NULL && self->name[0] != '\0');
......
......@@ -3513,7 +3513,7 @@ prelight_or_select (GtkTreeView *tree_view,
static void
ensure_unprelighted (GtkTreeView *tree_view)
{
GtkTreeViewPrivate *priv = gtk_tree_view_get_instance_private (tree_view);
GtkTreeViewPrivate *priv G_GNUC_UNUSED = gtk_tree_view_get_instance_private (tree_view);
do_prelight (tree_view,
NULL, NULL,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment