From: Po Lu Date: Fri, 20 May 2022 06:46:45 +0000 (+0800) Subject: Fix NS port warnings with GCC 12 X-Git-Tag: emacs-29.0.90~1910^2~567 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=efd3e78258c4d5238b58b59d7fdbfe1f141bbfd2;p=emacs.git Fix NS port warnings with GCC 12 * src/nsterm.m (ns_draw_glyphless_glyph_string_foreground): Clear s->char2b after function returns. --- diff --git a/src/nsterm.m b/src/nsterm.m index a1cbbff1cc6..7fbfcf8c6d4 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -4180,6 +4180,10 @@ ns_draw_glyphless_glyph_string_foreground (struct glyph_string *s) YES, YES); x += glyph->pixel_width; } + + /* GCC 12 complains even though nothing ever uses s->char2b after + this function returns. */ + s->char2b = NULL; } static void