[gtk/wip/otte/for-master: 8/11] cellarea: Be very clear



commit 510e17d123391d8121ec5eb1ac0602843b7f224e
Author: Benjamin Otte <otte redhat com>
Date:   Fri Mar 6 05:50:35 2020 +0100

    cellarea: Be very clear
    
    The static analyzer needs to know we absolutely DO NOT want to use this
    return value.

 gtk/gtkcellarea.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkcellarea.c b/gtk/gtkcellarea.c
index e9b10bd355..157c3bc5ed 100644
--- a/gtk/gtkcellarea.c
+++ b/gtk/gtkcellarea.c
@@ -2950,7 +2950,9 @@ gtk_cell_area_add_focus_sibling (GtkCellArea     *area,
   siblings = g_hash_table_lookup (priv->focus_siblings, renderer);
 
   if (siblings)
-    siblings = g_list_append (siblings, sibling);
+    {
+      G_GNUC_UNUSED GList *unused = g_list_append (siblings, sibling);
+    }
   else
     {
       siblings = g_list_append (siblings, sibling);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]