From: Paul Eggert Date: Fri, 8 May 2026 17:42:39 +0000 (-0700) Subject: argp: pacify -Wuseless-cast X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e96f3ccdf0465c7be3b95424ebe61ae308958aab;p=thirdparty%2Fgnulib.git argp: pacify -Wuseless-cast * lib/argp-help.c (argp_doc): Omit unnecessary cast of const char * to const char *. --- diff --git a/ChangeLog b/ChangeLog index cf9294505c..dff86a711e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2026-05-08 Paul Eggert + + argp: pacify -Wuseless-cast + * lib/argp-help.c (argp_doc): Omit unnecessary cast + of const char * to const char *. + 2026-05-08 Pádraig Brady manywarnings: avoid -Wuseless-cast warnings on GCC <= 13 diff --git a/lib/argp-help.c b/lib/argp-help.c index d925336775..f7a4b2f0d0 100644 --- a/lib/argp-help.c +++ b/lib/argp-help.c @@ -1654,7 +1654,7 @@ argp_doc (const struct argp *argp, const struct argp_state *state, inp_text, input); } else - text = (const char *) inp_text; + text = inp_text; int anything = 0; if (text)