gtk2/gtk2-uninitialized.patch

50 lines
1.3 KiB
Diff

--- gtk/gtkcolorsel.c
+++ gtk/gtkcolorsel.c
@@ -795,6 +795,7 @@
gdk_color.red = UNSCALE (color[0]);
gdk_color.green = UNSCALE (color[1]);
gdk_color.blue = UNSCALE (color[2]);
+ gdk_color.pixel = 0; /* Quiet GCC */
x = 0;
y = 0; /* Quiet GCC */
--- tests/testgtk.c
+++ tests/testgtk.c
@@ -6548,9 +6548,12 @@
col1.red = 0;
col1.green = 56000;
col1.blue = 0;
+ col1.pixel = 0; /* Quiet GCC */
+
col2.red = 32000;
col2.green = 0;
col2.blue = 56000;
+ col2.pixel = 0; /* Quiet GCC */
style1 = gtk_style_copy (GTK_WIDGET (data)->style);
style1->base[GTK_STATE_NORMAL] = col1;
@@ -6803,9 +6806,11 @@
col1.red = 56000;
col1.green = 0;
col1.blue = 0;
+ col1.pixel = 0; /* Quiet GCC */
col2.red = 0;
col2.green = 56000;
col2.blue = 32000;
+ col2.pixel = 0; /* Quiet GCC */
style = gtk_style_new ();
style->fg[GTK_STATE_NORMAL] = col1;
@@ -7002,9 +7007,11 @@
col1.red = 0;
col1.green = 56000;
col1.blue = 0;
+ col1.pixel = 0; /* Quiet GCC */
col2.red = 32000;
col2.green = 0;
col2.blue = 56000;
+ col2.pixel = 0; /* Quiet GCC */
style1 = gtk_style_new ();
style1->base[GTK_STATE_NORMAL] = col1;