Browse Source

libpthread/nptl: bugfix compile warning.

warning: unused variable 'self' [-Wunused-variable]

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Guo Ren 6 years ago
parent
commit
630253231e
1 changed files with 1 additions and 3 deletions
  1. 1 3
      libpthread/nptl/sysdeps/unix/sysv/linux/fork.c

+ 1 - 3
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;