mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 05:20:06 +00:00
Fix a couple of -Wundef warnings.
This commit is contained in:
parent
cd2c37c979
commit
6d6d7fde04
@ -1,5 +1,9 @@
|
|||||||
2014-12-29 Chris Metcalf <cmetcalf@ezchip.com>
|
2014-12-29 Chris Metcalf <cmetcalf@ezchip.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
|
||||||
|
instead of #if to avoid a Wundef warning.
|
||||||
|
* stdlib/tst-limits.c (do_test): Likewise.
|
||||||
|
|
||||||
* sysdeps/tile/math_private.h (fetestexcept): Add macro to
|
* sysdeps/tile/math_private.h (fetestexcept): Add macro to
|
||||||
parallel other exception macros.
|
parallel other exception macros.
|
||||||
(fegetenv): Convert from macro to extern inline so that it applies
|
(fegetenv): Convert from macro to extern inline so that it applies
|
||||||
|
@ -58,7 +58,7 @@ do_test (void)
|
|||||||
/* Values from POSIX and Unix. */
|
/* Values from POSIX and Unix. */
|
||||||
#ifdef PAGESIZE
|
#ifdef PAGESIZE
|
||||||
TEST (PAGESIZE, "d", getpagesize ());
|
TEST (PAGESIZE, "d", getpagesize ());
|
||||||
#elif PAGE_SIZE
|
#elif defined (PAGE_SIZE)
|
||||||
TEST (PAGE_SIZE, "d", getpagesize ());
|
TEST (PAGE_SIZE, "d", getpagesize ());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ do_test (int argc, char **argv)
|
|||||||
{
|
{
|
||||||
res = get_self_comm (gettid (), name_check, TASK_COMM_LEN);
|
res = get_self_comm (gettid (), name_check, TASK_COMM_LEN);
|
||||||
|
|
||||||
#if !__ASSUME_PROC_PID_TASK_COMM
|
#ifndef __ASSUME_PROC_PID_TASK_COMM
|
||||||
/* On this first test we look for ENOENT to be returned from
|
/* On this first test we look for ENOENT to be returned from
|
||||||
get_self_comm to indicate that the kernel is older than
|
get_self_comm to indicate that the kernel is older than
|
||||||
2.6.33 and doesn't contain comm within the proc structure.
|
2.6.33 and doesn't contain comm within the proc structure.
|
||||||
|
Loading…
Reference in New Issue
Block a user