]> git.eshelyaron.com Git - emacs.git/commitdiff
; Avoid compiler warning in w32term.c
authorEli Zaretskii <eliz@gnu.org>
Fri, 17 May 2024 06:43:20 +0000 (09:43 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 18 May 2024 18:52:03 +0000 (20:52 +0200)
* src/w32term.c (w32_draw_glyphless_glyph_string_foreground):
Avoid GCC 14 warning about storing address of local variable.

(cherry picked from commit 6ca3a60db3427bc6aef08144c1524920ff3d9c4d)

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;