[gtk/testsuite-asserts: 4/13] gtk-demo: Avoid compiler warnings without assertions
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/testsuite-asserts: 4/13] gtk-demo: Avoid compiler warnings without assertions
- Date: Tue, 13 Apr 2021 02:12:07 +0000 (UTC)
commit 5e7b5fe085d69cc6c9cdc3f242c3c2cb84c57738
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Apr 12 17:12:01 2021 -0400
gtk-demo: Avoid compiler warnings without assertions
Avoid an unused variable warning.
demos/gtk-demo/main.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c
index 96ec96e476..3253131541 100644
--- a/demos/gtk-demo/main.c
+++ b/demos/gtk-demo/main.c
@@ -751,7 +751,6 @@ demo_filter_by_name (gpointer item,
gpointer user_data)
{
GtkTreeListRow *row = item;
- GtkFilterListModel *model = user_data;
GListModel *children;
GtkDemo *demo;
guint i, n;
@@ -762,7 +761,7 @@ demo_filter_by_name (gpointer item,
return TRUE;
g_assert (GTK_IS_TREE_LIST_ROW (row));
- g_assert (GTK_IS_FILTER_LIST_MODEL (model));
+ g_assert (GTK_IS_FILTER_LIST_MODEL (user_data));
/* Show a row if itself of any parent matches */
for (parent = row; parent; parent = gtk_tree_list_row_get_parent (parent))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]