]> granicus.if.org Git - gc/commitdiff
Prevent test_atomic_ops link fail if AO_nop_full is not defined
authorIvan Maidanski <ivmai@mail.ru>
Tue, 28 Nov 2017 23:39:20 +0000 (02:39 +0300)
committerIvan 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

index f767533888390f882f16ed500832b07368ac8c2f..18ec19ec2a78bddbadc679527c965b3852f6d486 100644 (file)
@@ -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