From 0579fabbe81afc3051b74c71907e8b5a76e2ab8a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 13 Mar 2003 21:00:18 +0000 Subject: 2003-03-13 Jakub Jelinek * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Only declare and set PPID if [! NDEBUG]. --- nptl/sysdeps/unix/sysv/linux/fork.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nptl/sysdeps/unix/sysv/linux/fork.c b/nptl/sysdeps/unix/sysv/linux/fork.c index e75f9d51da..4cc13746ae 100644 --- a/nptl/sysdeps/unix/sysv/linux/fork.c +++ b/nptl/sysdeps/unix/sysv/linux/fork.c @@ -69,7 +69,9 @@ __libc_fork (void) _IO_list_lock (); +#ifndef NDEBUG pid_t ppid = THREAD_GETMEM (THREAD_SELF, tid); +#endif #ifdef ARCH_FORK pid = ARCH_FORK (); -- cgit 1.4.1