projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: add missing unused attribute to _rcu_dereference
[userspace-rcu.git]
/
include
/
urcu
/
static
/
pointer.h
diff --git
a/include/urcu/static/pointer.h
b/include/urcu/static/pointer.h
index c276e68ef770c13c6d6b0c1cf79b9bd055ae4ee0..9e46a5769c92fc99142adf55989aa0d37581647c 100644
(file)
--- a/
include/urcu/static/pointer.h
+++ b/
include/urcu/static/pointer.h
@@
-99,7
+99,7
@@
extern "C" {
#ifdef __URCU_DEREFERENCE_USE_ATOMIC_CONSUME
# define _rcu_dereference(p) __extension__ ({ \
__typeof__(__extension__ ({ \
#ifdef __URCU_DEREFERENCE_USE_ATOMIC_CONSUME
# define _rcu_dereference(p) __extension__ ({ \
__typeof__(__extension__ ({ \
- __typeof__(p) __
_______p0 = { 0 };
\
+ __typeof__(p) __
attribute__((unused)) _________p0 = { 0 };
\
_________p0; \
})) _________p1; \
__atomic_load(&(p), &_________p1, __ATOMIC_CONSUME); \
_________p0; \
})) _________p1; \
__atomic_load(&(p), &_________p1, __ATOMIC_CONSUME); \
This page took
0.029221 seconds
and
4
git commands to generate.