bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hard-locale.c: SETLOCALE_NULL_MAX


From: Marc Nieper-Wißkirchen
Subject: hard-locale.c: SETLOCALE_NULL_MAX
Date: Wed, 30 Sep 2020 16:29:40 +0200

It seems that I have stumbled across the same bug as reported here:

https://bugs.gentoo.org/709732

The compiler throws the following error at me:

lib/hard-locale.c: In function 'hard_locale':
lib/hard-locale.c:29:15: error: 'SETLOCALE_NULL_MAX' undeclared (first
use in this function); did you mean 'SETLOCALE_NULL_ALL_MTSAFE'?
   29 |   char locale[SETLOCALE_NULL_MAX];
      |               ^~~~~~~~~~~~~~~~~~
      |               SETLOCALE_NULL_ALL_MTSAFE
lib/hard-locale.c:29:15: note: each undeclared identifier is reported
only once for each function it appears in
lib/hard-locale.c:31:7: warning: implicit declaration of function
'setlocale_null_r' [-Wimplicit-function-declaration]
   31 |   if (setlocale_null_r (category, locale, sizeof (locale)))
      |       ^~~~~~~~~~~~~~~~

Is there a quick fix possible?

Thanks,

Marc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]