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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user