Hi Paul,

> diff --git a/lib/openat-die.c b/lib/openat-die.c
> index 79a5b23bc8..f72ed0537b 100644
> --- a/lib/openat-die.c
> +++ b/lib/openat-die.c
> @@ -34,7 +34,7 @@ _Noreturn void
>  openat_save_fail (int errnum)
>  {
>  #ifndef GNULIB_LIBPOSIX
> -  error (exit_failure, errnum,
> +  error (exit_failure, errnum, "%s",
>           _("unable to record current working directory"));
>  #endif
>    /* _Noreturn cannot be applied to error, since it returns

Why this? This -Wformat-security warning is supposedly fixed since
my patch from 2025-05-28
https://lists.gnu.org/archive/html/bug-gnulib/2025-05/msg00266.html

1) Is the package that you are using not including the gettext.h from
   2025-05-28 or newer? Or what else is wrong?

2) Do we care about random warnings on non-GNU systems? I thought
   that we care about warnings only on GNU systems, because that's
   what we develop on and that's where we have some influence on
   the compiler (gcc). If we want eliminate warnings on random
   systems, from OpenBSD over Solaris to Windows, it would be a
   monumental waste of time.

Bruno




Reply via email to