; Avoid compiler warning in w32term.c
authorEli Zaretskii <eliz@gnu.org>
Fri, 17 May 2024 06:43:20 +0000 (09:43 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 17 May 2024 06:43:20 +0000 (09:43 +0300)
* src/w32term.c (w32_draw_glyphless_glyph_string_foreground):
Avoid GCC 14 warning about storing address of local variable.

src/w32term.c

index a9aff30477139d18da1e09e772bdf43115d79f10..2bcd5d86a3863f27259e6b2a87fe81374714e680 100644 (file)
@@ -1455,7 +1455,7 @@ static void
 w32_draw_glyphless_glyph_string_foreground (struct glyph_string *s)
 {
   struct glyph *glyph = s->first_glyph;
-  unsigned char2b[8];
+  static unsigned char2b[8];
   int x, i, j;
   bool with_background;