1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-04-28 06:33:36 +00:00

mbrtowc, mbrtoc32: Silence -Wshadow warnings (regr. 2026-04-02).

Reported by Collin Funk.

* lib/mbrtowc.c (rpl_mbrtowc): Enclose the #include in a block.
* lib/mbrtoc32.c (mbrtoc32): Likewise.
This commit is contained in:
Bruno Haible
2026-04-06 13:21:56 +02:00
parent 0e049d12d8
commit 2c480fa522
3 changed files with 11 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
2026-04-06 Bruno Haible <bruno@clisp.org>
mbrtowc, mbrtoc32: Silence -Wshadow warnings (regr. 2026-04-02).
Reported by Collin Funk.
* lib/mbrtowc.c (rpl_mbrtowc): Enclose the #include in a block.
* lib/mbrtoc32.c (mbrtoc32): Likewise.
2026-04-05 Paul Eggert <eggert@cs.ucla.edu>
term-style-control: use pthread_sigmask

View File

@@ -209,9 +209,10 @@ mbrtoc32 (char32_t *pwc, const char *s, size_t n, mbstate_t *ps)
/* Here m > 0. */
int res;
{
# define FITS_IN_CHAR_TYPE(wc) 1
# include "mbrtowc-impl-utf8.h"
}
success:
/* res >= 0 is the corrected return value of

View File

@@ -194,9 +194,10 @@ rpl_mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)
/* Here m > 0. */
int res;
{
# define FITS_IN_CHAR_TYPE(wc) ((wc) <= WCHAR_MAX)
# include "mbrtowc-impl-utf8.h"
}
success:
/* res >= 0 is the corrected return value of