[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master efd3e78258: Fix NS port warnings with GCC 12
From: |
Po Lu |
Subject: |
master efd3e78258: Fix NS port warnings with GCC 12 |
Date: |
Fri, 20 May 2022 02:46:59 -0400 (EDT) |
branch: master
commit efd3e78258c4d5238b58b59d7fdbfe1f141bbfd2
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix NS port warnings with GCC 12
* src/nsterm.m (ns_draw_glyphless_glyph_string_foreground):
Clear s->char2b after function returns.
---
src/nsterm.m | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/nsterm.m b/src/nsterm.m
index a1cbbff1cc..7fbfcf8c6d 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master efd3e78258: Fix NS port warnings with GCC 12,
Po Lu <=