From df21f9e742f8222f54d4c0226ed12a1ddf9a5744 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 26 Aug 2024 19:13:01 -0700 Subject: grid.c: fix 7 -Wuseless-cast warnings from gcc 14.1 Signed-off-by: Alan Coopersmith Part-of: --- grid.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/grid.c b/grid.c index caa7743..a9f8d26 100644 --- a/grid.c +++ b/grid.c @@ -334,8 +334,8 @@ GetPrevNextStates(Widget w, Bool *prevvalidp, Bool *nextvalidp, Bool *prev16validp, Bool *next16validp) { FontGridWidget fgw = (FontGridWidget) w; - long minn = (long) GridFirstChar (w); - long maxn = (long) GridLastChar (w); + long minn = GridFirstChar (w); + long maxn = GridLastChar (w); *prev16validp = (fgw->fontgrid.start_char - 0xf00 > minn); *prevvalidp = (fgw->fontgrid.start_char > minn); @@ -394,7 +394,7 @@ static XtConvertArgRec xftColorConvertArgs[] = { if (toVal->size < sizeof(type)) { \ toVal->size = sizeof(type); \ XtDisplayStringConversionWarning(dpy, \ - (char*) fromVal->addr, tstr); \ + fromVal->addr, tstr); \ return False; \ } \ *(type*)(toVal->addr) = (value); \ @@ -461,7 +461,7 @@ XmuCvtStringToXftColor(Display *dpy, screen = *((Screen **) args[0].addr); colormap = *((Colormap *) args[1].addr); - spec = (char *) fromVal->addr; + spec = fromVal->addr; if (strcasecmp (spec, XtDefaultForeground) == 0) { renderColor.red = 0; @@ -533,7 +533,7 @@ XmuCvtStringToXftFont(Display *dpy, } screen = *((Screen **) args[0].addr); - name = (char *) fromVal->addr; + name = fromVal->addr; font = NULL; if (name) @@ -542,7 +542,7 @@ XmuCvtStringToXftFont(Display *dpy, XScreenNumberOfScreen (screen), name); if (!font) - XtDisplayStringConversionWarning(dpy, (char *) fromVal->addr, XtRXftFont); + XtDisplayStringConversionWarning(dpy, fromVal->addr, XtRXftFont); } donestr (XftFont *, font, XtRXftFont); } -- cgit v1.2.3