Browse Source

or1k: silence gcc warnings

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Waldemar Brodkorb 7 years ago
parent
commit
d18a971e28
1 changed files with 1 additions and 2 deletions
  1. 1 2
      libpthread/linuxthreads/sysdeps/or1k/pt-machine.h

+ 1 - 2
libpthread/linuxthreads/sysdeps/or1k/pt-machine.h

@@ -34,10 +34,9 @@ PT_EI long int testandset(int*);
 PT_EI long int
 testandset (int *spinlock)
 {
-	int err;
 	int oldvalue = 1;
 
-	err = INLINE_SYSCALL(or1k_atomic, 3, OR1K_ATOMIC_XCHG, spinlock, &oldvalue);
+	INLINE_SYSCALL(or1k_atomic, 3, OR1K_ATOMIC_XCHG, spinlock, &oldvalue);
 
 	return (oldvalue);
 }