From: Paul Eggert Date: Fri, 8 May 2026 17:49:06 +0000 (-0700) Subject: fstrcmp: pacify -Wuseless-cast X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5220c9865e04585f71d552e66f88bd66896821fa;p=thirdparty%2Fgnulib.git fstrcmp: pacify -Wuseless-cast * lib/fstrcmp.c (fstrcmp_bounded): Omit unnecessary cast of uintptr_t to uintptr_t. --- diff --git a/ChangeLog b/ChangeLog index dff86a711e..654e73b3e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2026-05-08 Paul Eggert + 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 *. diff --git a/lib/fstrcmp.c b/lib/fstrcmp.c index 2ddafabe7c..69aca5d0e7 100644 --- a/lib/fstrcmp.c +++ b/lib/fstrcmp.c @@ -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;