projects
/
platform
/
upstream
/
libatomic_ops.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b3e169
)
Fix visibility and initial value of 'dummy' variable in atomic_ops_stack
author
Ivan Maidanski
<ivmai@mail.ru>
Wed, 3 Oct 2012 07:59:33 +0000
(11:59 +0400)
committer
Ivan Maidanski
<ivmai@mail.ru>
Wed, 3 Oct 2012 08:39:56 +0000
(12:39 +0400)
* 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
patch
|
blob
|
history
diff --git
a/src/atomic_ops_stack.c
b/src/atomic_ops_stack.c
index
7475903
..
13125ea
100644
(file)
--- 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 <windows.h>
-
AO_t dummy
;
+
static AO_t dummy = 1
;
/* Spin for 2**n units. */
static void AO_spin(int n)