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

ChangeLog
lib/fstrcmp.c

index dff86a711e12534def1b185fbc8000acc3dbc4cf..654e73b3e72b5408ee54b4627d7df35b3b11adf5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2026-05-08  Paul Eggert  <eggert@cs.ucla.edu>
 
+       fstrcmp: pacify -Wuseless-cast
+       * lib/fstrcmp.c (fstrcmp_bounded): Omit unnecessary cast
+       of uintptr_t to uintptr_t.
+
        argp: pacify -Wuseless-cast
        * lib/argp-help.c (argp_doc): Omit unnecessary cast
        of const char * to const char *.
index 2ddafabe7cede10d745d9920bfae2ea1474c5dcb..69aca5d0e7c63a4133a0cd967d67dd5c7a579c00 100644 (file)
@@ -214,7 +214,7 @@ fstrcmp_bounded (const char *string1, const char *string2, double lower_bound)
       free (buffer);
       buffer = xnmalloc (bufmax, 2 * sizeof *buffer);
       gl_tls_set (buffer_key, buffer);
-      gl_tls_set (bufmax_key, (void *) (uintptr_t) bufmax);
+      gl_tls_set (bufmax_key, (void *) bufmax);
     }
   ctxt.fdiag = buffer + yvec_length + 1;
   ctxt.bdiag = ctxt.fdiag + fdiag_len;