From 1a91a17e54a9301e91512a85d5223a6253aacff3 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Mon, 14 Nov 2011 17:19:50 +0400 Subject: 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. --- tests/test_atomic_include.template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_atomic_include.template b/tests/test_atomic_include.template index 9fec3f9..05952b0 100644 --- a/tests/test_atomic_include.template +++ b/tests/test_atomic_include.template @@ -25,7 +25,8 @@ void test_atomicXX(void) # if defined(AO_HAVE_test_and_setXX) AO_TS_t z = AO_TS_INITIALIZER; # endif -# if defined(AO_HAVE_double_t) +# if defined(AO_HAVE_compare_and_swap_doubleXX) \ + || defined(AO_HAVE_compare_double_and_swap_doubleXX) AO_double_t w; w.AO_val1 = 0; w.AO_val2 = 0; -- cgit v1.2.1