From f3149e573862ffa69297abd2934b48617415c97d Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Tue, 20 Jul 2010 07:45:19 +0200 Subject: nptl_sh: Fix compiler warning due to shadowed variable Signed-off-by: Carmelo Amoroso --- libc/sysdeps/linux/sh/bits/atomic.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libc/sysdeps') diff --git a/libc/sysdeps/linux/sh/bits/atomic.h b/libc/sysdeps/linux/sh/bits/atomic.h index bc79b29b7..fa6d0de96 100644 --- a/libc/sysdeps/linux/sh/bits/atomic.h +++ b/libc/sysdeps/linux/sh/bits/atomic.h @@ -79,7 +79,7 @@ typedef uintmax_t uatomic_max_t; */ #define __arch_compare_and_exchange_n(mem, newval, oldval, bwl, version) \ - ({ signed long __result; \ + ({ signed long __arch_result; \ __asm__ __volatile__ ("\ .align 2\n\ mova 1f,r0\n\ @@ -94,10 +94,10 @@ typedef uintmax_t uatomic_max_t; .ifeqs \"bool\",\"" #version "\"\n\ movt %0\n\ .endif\n" \ - : "=&r" (__result) \ + : "=&r" (__arch_result) \ : "r" (mem), "r" (newval), "r" (oldval) \ : "r0", "r1", "t", "memory"); \ - __result; }) + __arch_result; }) #define __arch_compare_and_exchange_val_8_acq(mem, newval, oldval) \ __arch_compare_and_exchange_n(mem, newval, (int8_t)(oldval), b, val) -- cgit v1.2.3