aboutsummaryrefslogtreecommitdiffstats
path: root/src/nsterm.m
diff options
context:
space:
mode:
authorPo Lu2022-05-20 14:46:45 +0800
committerPo Lu2022-05-20 14:46:45 +0800
commitefd3e78258c4d5238b58b59d7fdbfe1f141bbfd2 (patch)
treebc19a0f17adbc66e825f280f8de4378a852efd03 /src/nsterm.m
parent726969a4b4e3e0f298b95a04d23e7a131d7abec7 (diff)
downloademacs-efd3e78258c4d5238b58b59d7fdbfe1f141bbfd2.tar.gz
emacs-efd3e78258c4d5238b58b59d7fdbfe1f141bbfd2.zip
Fix NS port warnings with GCC 12
* src/nsterm.m (ns_draw_glyphless_glyph_string_foreground): Clear s->char2b after function returns.
Diffstat (limited to 'src/nsterm.m')
-rw-r--r--src/nsterm.m4
1 files changed, 4 insertions, 0 deletions
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)
4180 YES, YES); 4180 YES, YES);
4181 x += glyph->pixel_width; 4181 x += glyph->pixel_width;
4182 } 4182 }
4183
4184 /* GCC 12 complains even though nothing ever uses s->char2b after
4185 this function returns. */
4186 s->char2b = NULL;
4183} 4187}
4184 4188
4185static void 4189static void