[libadwaita/msvc: 8/12] adw-tab.c: Avoid empty initializers
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/msvc: 8/12] adw-tab.c: Avoid empty initializers
- Date: Tue, 11 Jan 2022 09:18:19 +0000 (UTC)
commit c8c6cb73f2267415a974b6ababc868a6d9a42728
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]