diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2017-04-14 07:07:19 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-04-16 17:31:10 +0200 |
commit | d18a971e28daf4e83d51d71b2c73fe2ecbeee0cd (patch) | |
tree | b4e723ad61d53afe2f804fcab453e5ab40f0758d | |
parent | e60bad336eeb054f08c262b94c28f383ce6177aa (diff) |
or1k: silence gcc warnings
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
-rw-r--r-- | libpthread/linuxthreads/sysdeps/or1k/pt-machine.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libpthread/linuxthreads/sysdeps/or1k/pt-machine.h b/libpthread/linuxthreads/sysdeps/or1k/pt-machine.h index 51521a2b5..e8d7139b0 100644 --- a/libpthread/linuxthreads/sysdeps/or1k/pt-machine.h +++ b/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); } |