From: Ivan Maidanski Date: Wed, 3 Oct 2012 07:59:33 +0000 (+0400) Subject: Fix visibility and initial value of 'dummy' variable in atomic_ops_stack X-Git-Tag: libatomic_ops-7_4_0~101 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74357409ce5ee215b48f8ac253c6126abea02e12;p=platform%2Fupstream%2Flibatomic_ops.git 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). --- diff --git a/src/atomic_ops_stack.c b/src/atomic_ops_stack.c index 7475903..13125ea 100644 --- a/src/atomic_ops_stack.c +++ b/src/atomic_ops_stack.c @@ -27,7 +27,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)