]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
argp: pacify -Wuseless-cast
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 May 2026 17:42:39 +0000 (10:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 May 2026 03:25:25 +0000 (20:25 -0700)
* lib/argp-help.c (argp_doc): Omit unnecessary cast
of const char * to const char *.

ChangeLog
lib/argp-help.c

index cf9294505cdd04bcce03ca432a9e2d40e931ff67..dff86a711e12534def1b185fbc8000acc3dbc4cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-05-08  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <P@draigBrady.com>
 
        manywarnings: avoid -Wuseless-cast warnings on GCC <= 13
index d9253367751b684c1f77a249d74ce5adb70b3e8e..f7a4b2f0d0b5fc9bbf27ff7c4dd358fcf5911f23 100644 (file)
@@ -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)