mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 11:20:07 +00:00
Fix -Wundef issues in generated errlist.c.
This commit is contained in:
parent
19c4bec0f4
commit
eb1ed03daf
@ -1,3 +1,10 @@
|
|||||||
|
2014-05-05 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
* sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
|
||||||
|
to 0, so the first #if test emitted later doesn't see it undefined.
|
||||||
|
(END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
|
||||||
|
* sysdeps/gnu/errlist.c: Regenerated.
|
||||||
|
|
||||||
2014-05-04 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
|
2014-05-04 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
|
* sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
|
||||||
|
@ -52,6 +52,7 @@ BEGIN {
|
|||||||
print "#ifdef ERR_MAX";
|
print "#ifdef ERR_MAX";
|
||||||
print "# define ERRLIST_SIZE ERR_MAX + 1";
|
print "# define ERRLIST_SIZE ERR_MAX + 1";
|
||||||
print "#else"
|
print "#else"
|
||||||
|
print "# define ERR_MAX 0";
|
||||||
print "# define ERRLIST_SIZE";
|
print "# define ERRLIST_SIZE";
|
||||||
print "#endif";
|
print "#endif";
|
||||||
|
|
||||||
@ -109,7 +110,7 @@ END {
|
|||||||
print " (sizeof _sys_errlist_internal / sizeof _sys_errlist_internal [0])";
|
print " (sizeof _sys_errlist_internal / sizeof _sys_errlist_internal [0])";
|
||||||
print "const int _sys_nerr_internal = NERR;"
|
print "const int _sys_nerr_internal = NERR;"
|
||||||
print "";
|
print "";
|
||||||
print "#if !defined NOT_IN_libc && !ERRLIST_NO_COMPAT";
|
print "#if !defined NOT_IN_libc && !defined ERRLIST_NO_COMPAT";
|
||||||
print "# include <errlist-compat.c>";
|
print "# include <errlist-compat.c>";
|
||||||
print "#endif";
|
print "#endif";
|
||||||
print "";
|
print "";
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
#ifdef ERR_MAX
|
#ifdef ERR_MAX
|
||||||
# define ERRLIST_SIZE ERR_MAX + 1
|
# define ERRLIST_SIZE ERR_MAX + 1
|
||||||
#else
|
#else
|
||||||
|
# define ERR_MAX 0
|
||||||
# define ERRLIST_SIZE
|
# define ERRLIST_SIZE
|
||||||
#endif
|
#endif
|
||||||
const char *const _sys_errlist_internal[ERRLIST_SIZE] =
|
const char *const _sys_errlist_internal[ERRLIST_SIZE] =
|
||||||
@ -1479,7 +1480,7 @@ TRANS error; @pxref{Cancel AIO Operations}. */
|
|||||||
(sizeof _sys_errlist_internal / sizeof _sys_errlist_internal [0])
|
(sizeof _sys_errlist_internal / sizeof _sys_errlist_internal [0])
|
||||||
const int _sys_nerr_internal = NERR;
|
const int _sys_nerr_internal = NERR;
|
||||||
|
|
||||||
#if !defined NOT_IN_libc && !ERRLIST_NO_COMPAT
|
#if !defined NOT_IN_libc && !defined ERRLIST_NO_COMPAT
|
||||||
# include <errlist-compat.c>
|
# include <errlist-compat.c>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user