projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e475fc
)
Prevent test_atomic_ops link fail if AO_nop_full is not defined
author
Ivan Maidanski
<ivmai@mail.ru>
Tue, 28 Nov 2017 23:39:20 +0000
(
02:39
+0300)
committer
Ivan Maidanski
<ivmai@mail.ru>
Tue, 28 Nov 2017 23:39:20 +0000
(
02:39
+0300)
(fix commit 066e0ca)
* tests/test_atomic_ops.c (main): Call AO_nop_full() only
if AO_HAVE_nop_full is defined.
tests/test_atomic_ops.c
patch
|
blob
|
history
diff --git
a/tests/test_atomic_ops.c
b/tests/test_atomic_ops.c
index
f767533
..
18ec19e
100644
(file)
--- a/
tests/test_atomic_ops.c
+++ b/
tests/test_atomic_ops.c
@@
-48,7
+48,9
@@
AO_CLEAR(&z);
# endif
AO_compiler_barrier();
- AO_nop_full();
+# ifdef AO_HAVE_nop_full
+ AO_nop_full();
+# endif
# ifdef AO_HAVE_load_acquire
TA_assert(AO_load_acquire(&x) == 13);
# endif