libgimpcolor/gimpbilinear.c fix some uninitialized stuff gcc 4.0 was

2005-07-08  Michael Natterer  <mitch@gimp.org>

	* libgimpcolor/gimpbilinear.c
	* libgimpwidgets/gimppreviewarea.c: fix some uninitialized stuff
	gcc 4.0 was choking about.
This commit is contained in:
Michael Natterer 2005-07-08 18:18:00 +00:00 committed by Michael Natterer
parent a3371b1f0f
commit 48729e774c
3 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2005-07-08 Michael Natterer <mitch@gimp.org>
* libgimpcolor/gimpbilinear.c
* libgimpwidgets/gimppreviewarea.c: fix some uninitialized stuff
gcc 4.0 was choking about.
2005-07-08 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimppageselector.c (gimp_page_selector_class_init):

View File

@ -127,7 +127,7 @@ gimp_bilinear_rgb (gdouble x,
{
gdouble m0, m1;
gdouble ix, iy;
GimpRGB v;
GimpRGB v = { 0, };
g_return_val_if_fail (values != NULL, v);
@ -174,7 +174,7 @@ gimp_bilinear_rgba (gdouble x,
gdouble m0, m1;
gdouble ix, iy;
gdouble a0, a1, a2, a3, alpha;
GimpRGB v;
GimpRGB v = { 0, };
g_return_val_if_fail (values != NULL, v);

View File

@ -820,7 +820,7 @@ gimp_preview_area_blend (GimpPreviewArea *area,
for (col = x; col < x + width; col++, s1 += 2, s2 += 2, d+= 3)
{
guchar inter[2];
guchar inter[2] = { 0, };
if (s1[1] == s2[1])
{
@ -1306,7 +1306,7 @@ gimp_preview_area_mask (GimpPreviewArea *area,
default:
{
guchar inter[2];
guchar inter[2] = { 0, };
if (s1[1] == s2[1])
{