projects
/
platform
/
upstream
/
libatomic_ops.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3577020
)
Fix AO_compare_and_swap (gcc/alpha.h) to suppress compiler warning
author
Ivan Maidanski
<ivmai@mail.ru>
Fri, 21 Oct 2011 08:47:06 +0000
(12:47 +0400)
committer
Ivan Maidanski
<ivmai@mail.ru>
Fri, 21 Oct 2011 08:47:06 +0000
(12:47 +0400)
* src/atomic_ops/sysdeps/gcc/alpha.h (AO_compare_and_swap): Cast
returned value to int.
src/atomic_ops/sysdeps/gcc/alpha.h
patch
|
blob
|
history
diff --git
a/src/atomic_ops/sysdeps/gcc/alpha.h
b/src/atomic_ops/sysdeps/gcc/alpha.h
index
8a7bc2c
..
61d0433
100644
(file)
--- a/
src/atomic_ops/sysdeps/gcc/alpha.h
+++ b/
src/atomic_ops/sysdeps/gcc/alpha.h
@@
-58,6
+58,6
@@
AO_compare_and_swap(volatile AO_t *addr,
:"=&r" (temp), "=m" (*addr), "=&r" (was_equal)
: "r" (new_val), "Ir" (old)
:"memory");
- return was_equal;
+ return
(int)
was_equal;
}
#define AO_HAVE_compare_and_swap