xemacs/unitialized-variables.patch

27 lines
901 B
Diff
Raw Normal View History

diff -ru xemacs-21.5.25.20060327.orig/src/extents.c xemacs-21.5.25.20060327/src/extents.c
--- xemacs-21.5.25.20060327.orig/src/extents.c 2006-03-27 13:37:34.000000000 +0200
+++ xemacs-21.5.25.20060327/src/extents.c 2006-03-27 17:24:00.000000000 +0200
@@ -3121,6 +3121,10 @@
gb.glyph = glyph;
gb.extent = wrap_extent (e);
+ /* not used, but necessary to avoid compiler warnings about unitiallized variables */
+ gb.findex = 0;
+ gb.active = 0;
+ gb.width = 0;
Dynarr_add (ef->begin_glyphs, gb);
}
else if (EQ (glyph, last_glyph))
@@ -3140,6 +3144,10 @@
gb.glyph = glyph;
gb.extent = wrap_extent (e);
+ /* not used, but necessary to avoid compiler warnings about unitiallized variables */
+ gb.findex = 0;
+ gb.active = 0;
+ gb.width = 0;
Dynarr_add (ef->end_glyphs, gb);
}
else if (EQ (glyph, last_glyph))