From 4a94fb939e5dd106e999d0a3ee52f8945413eeb4 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 17 May 2024 09:43:20 +0300 Subject: [PATCH] ; Avoid compiler warning in w32term.c * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/w32term.c b/src/w32term.c index a9aff304771..2bcd5d86a38 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -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; -- 2.39.5