From 0aeefbdd4e49c8a595d4de1810909a873049313b Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 3 Oct 2012 11:59:33 +0400 Subject: [PATCH] Fix visibility and initial value of 'dummy' variable in atomic_ops_stack * src/atomic_ops_stack.c (dummy): Define as static (to make symbol without AO_ prefix visible only within this file); initialize to 1 (same as in atomic_ops.c, so that AO_spin would never really alter its value). --- src/atomic_ops_stack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atomic_ops_stack.c b/src/atomic_ops_stack.c index dd29848..8a51a28 100644 --- a/src/atomic_ops_stack.c +++ b/src/atomic_ops_stack.c @@ -28,7 +28,7 @@ /* FIXME: At least AO_spin should be factored out. */ #include -AO_t dummy; +static AO_t dummy = 1; /* Spin for 2**n units. */ static void AO_spin(int n) -- 2.40.0