Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Define 'w' local variable in test_atomic_include.h only if used

* tests/test_atomic_include.template (test_atomicXX): Define "w" local
variable only if AO_HAVE_compare_[double_]and_swap_double.
  • Loading branch information...
commit 1a91a17e54a9301e91512a85d5223a6253aacff3 1 parent 0709102
Ivan Maidanski ivmai authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  tests/test_atomic_include.template
3  tests/test_atomic_include.template
@@ -25,7 +25,8 @@ void test_atomicXX(void)
25 25 # if defined(AO_HAVE_test_and_setXX)
26 26 AO_TS_t z = AO_TS_INITIALIZER;
27 27 # endif
28   -# if defined(AO_HAVE_double_t)
  28 +# if defined(AO_HAVE_compare_and_swap_doubleXX) \
  29 + || defined(AO_HAVE_compare_double_and_swap_doubleXX)
29 30 AO_double_t w;
30 31 w.AO_val1 = 0;
31 32 w.AO_val2 = 0;

0 comments on commit 1a91a17

Please sign in to comment.
Something went wrong with that request. Please try again.