[PATCH 10/59] nss: Suppress clang -Wstring-plus-int on __nss_shlib_revision definition

Maciej W. Rozycki macro@orcam.me.uk
Sat Oct 18 11:50:22 GMT 2025


On Fri, 17 Oct 2025, Adhemerval Zanella wrote:

> diff --git a/nss/nss_module.c b/nss/nss_module.c
> index 3cd1940b22..9087d3c429 100644
> --- a/nss/nss_module.c
> +++ b/nss/nss_module.c
> @@ -40,8 +42,14 @@
>     except through the auto-generated lib-names.h and some static
>     pointer manipulation.  The "-1" accounts for the trailing NUL
>     included in the sizeof.  */
> +
> +/* clang issues an warning adding 'unsigned long' to a string does not append
> +   to the string.  e.  */

 Something messy about the comment here, how about:

/* clang issues a warning: "adding 'unsigned long' to a string does not 
   append to the string."  */

?  NB several other cases of "an warning" across this series too.

  Maciej


More information about the Libc-alpha mailing list