summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/unix/sysv
diff options
context:
space:
mode:
authorGuo Ren <ren_guo@c-sky.com>2017-10-09 22:57:45 +0800
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2017-10-10 19:10:22 +0200
commit630253231ead2d0dd2f1728daf4f3ff8402c4b84 (patch)
tree4a6cc5057af29efd69590d205aafb4ca82f4ae81 /libpthread/nptl/sysdeps/unix/sysv
parent3843192be41d067b237c4eef1b7ef118b23df090 (diff)
libpthread/nptl: bugfix compile warning.
warning: unused variable 'self' [-Wunused-variable] Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv')
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/fork.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c b/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
index 8b4b03677..9b96152d6 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
@@ -144,9 +144,7 @@ fork (void)
if (pid == 0)
{
- struct pthread *self = THREAD_SELF;
-
- assert (THREAD_GETMEM (self, tid) != ppid);
+ assert (THREAD_GETMEM (THREAD_SELF, tid) != ppid);
if (__fork_generation_pointer != NULL)
*__fork_generation_pointer += 4;