[gtk/ci-gtk3-update: 20/20] Silence a compiler warning
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ci-gtk3-update: 20/20] Silence a compiler warning
- Date: Fri, 13 Mar 2020 16:07:47 +0000 (UTC)
commit b4808c187f23489ae075e99a04c484fa923b8b0f
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Mar 13 16:05:13 2020 +0000
Silence a compiler warning
GCC complains with boxed out arguments that may be unset.
gtk/gtkcssgadget.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkcssgadget.c b/gtk/gtkcssgadget.c
index b07e3159ff..167e0a4859 100644
--- a/gtk/gtkcssgadget.c
+++ b/gtk/gtkcssgadget.c
@@ -541,7 +541,7 @@ gtk_css_gadget_margin_box_contains_point (GtkCssGadget *gadget,
int x,
int y)
{
- GtkAllocation margin_box;
+ GtkAllocation margin_box = { 0, };
gtk_css_gadget_get_margin_box (gadget, &margin_box);
return allocation_contains_point (&margin_box, x, y);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]