[libadwaita/msvc: 6/10] adw-tab.c: Avoid empty initializers




commit 45d06b4dbff9fd4707788846110584eede8a4741
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Thu Dec 30 13:52:45 2021 +0800

    adw-tab.c: Avoid empty initializers
    
    Visual Studio does not like empty initializers for structs, but since we are
    indeed initializing all fields of the struct before using it, just declare the
    variables unintialized instead.

 src/adw-tab.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/adw-tab.c b/src/adw-tab.c
index 29d715a0..31864db0 100644
--- a/src/adw-tab.c
+++ b/src/adw-tab.c
@@ -411,7 +411,7 @@ allocate_child (GtkWidget *child,
                 int        width,
                 int        baseline)
 {
-  GtkAllocation child_alloc = {};
+  GtkAllocation child_alloc;
 
   if (gtk_widget_get_direction (child) == GTK_TEXT_DIR_RTL)
     child_alloc.x = parent_width - width - x;


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