[gtk/css-style-split-2: 12/16] Silence a compiler warning



commit c3421cea25e5f1b7817a50e9de80b0208907459a
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jan 29 10:44:25 2020 +0100

    Silence a compiler warning

 gtk/gtktextbtree.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c
index a4f9b5398f..db7d3485e3 100644
--- a/gtk/gtktextbtree.c
+++ b/gtk/gtktextbtree.c
@@ -5701,7 +5701,8 @@ tag_changed_cb (GtkTextTagTable *table,
 
       while (view != NULL)
         {
-          gint width, height;
+          int width = 0;
+          int height = 0;
 
           _gtk_text_btree_get_view_size (tree, view->view_id, &width, &height);
           gtk_text_layout_changed (view->layout, 0, height, height);


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