From ab2df0af3dc7c594d44ccccfa0e7ddeeefb1e70e Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Wed, 7 Sep 2022 19:21:38 -0400 Subject: revised fix for gcc 12 compiler warnings in xftextent.c Signed-off-by: Thomas E. Dickey --- src/xftextent.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/xftextent.c b/src/xftextent.c index debf73e..d30b95e 100644 --- a/src/xftextent.c +++ b/src/xftextent.c @@ -127,7 +127,7 @@ XftTextExtents8 (Display *dpy, return; if (len <= NUM_LOCAL) - glyphs = glyphs_local; + *(glyphs = glyphs_local) = 0; else { glyphs = AllocUIntArray (len); @@ -158,7 +158,7 @@ XftTextExtents16 (Display *dpy, return; if (len <= NUM_LOCAL) - glyphs = glyphs_local; + *(glyphs = glyphs_local) = 0; else { glyphs = AllocUIntArray (len); @@ -189,7 +189,7 @@ XftTextExtents32 (Display *dpy, return; if (len <= NUM_LOCAL) - glyphs = glyphs_local; + *(glyphs = glyphs_local) = 0; else { glyphs = AllocUIntArray (len); @@ -223,7 +223,7 @@ XftTextExtentsUtf8 (Display *dpy, return; i = 0; - glyphs = glyphs_local; + *(glyphs = glyphs_local) = 0; size = NUM_LOCAL; while (len && (l = FcUtf8ToUcs4 (string, &ucs4, len)) > 0) { @@ -270,7 +270,7 @@ XftTextExtentsUtf16 (Display *dpy, return; i = 0; - glyphs = glyphs_local; + *(glyphs = glyphs_local) = 0; size = NUM_LOCAL; while (len && (l = FcUtf16ToUcs4 (string, endian, &ucs4, len)) > 0) { -- cgit v1.2.1