summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorrpj <rpj>2011-03-07 13:50:43 +0000
committerrpj <rpj>2011-03-07 13:50:43 +0000
commit2c51bb3337275e134e8c40db6dd4eea9407c8bca (patch)
tree272b3c7662394932a6a095c3d083c15b2eef6d58 /tests
parent247469c6f6a16681491ac3ee213e57efcdda6153 (diff)
Fix C++ exception throw warnings
Diffstat (limited to 'tests')
-rw-r--r--tests/once3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/once3.c b/tests/once3.c
index e1886c1..00fa421 100644
--- a/tests/once3.c
+++ b/tests/once3.c
@@ -52,8 +52,8 @@
#define NUM_THREADS 100 /* Targeting each once control */
#define NUM_ONCE 10
-pthread_once_t o = PTHREAD_ONCE_INIT;
-pthread_once_t once[NUM_ONCE];
+static pthread_once_t o = PTHREAD_ONCE_INIT;
+static pthread_once_t once[NUM_ONCE];
typedef struct {
int i;