From 485683c35f020bd8b926e9673adb9b748380e8ce Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 24 Oct 2011 21:43:33 -0400 Subject: Remove warnings in NPTL tests --- nptl/tst-mutexpi6.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nptl/tst-mutexpi6.c') diff --git a/nptl/tst-mutexpi6.c b/nptl/tst-mutexpi6.c index 42cda37..8881a1d 100644 --- a/nptl/tst-mutexpi6.c +++ b/nptl/tst-mutexpi6.c @@ -3,11 +3,13 @@ #include -static pthread_mutexattr_t a; +pthread_mutexattr_t a; +pthread_mutexattr_t *attr; static void prepare (void) { + attr = &a; if (pthread_mutexattr_init (&a) != 0) { puts ("mutexattr_init failed"); @@ -23,5 +25,5 @@ prepare (void) #define PREPARE(argc, argv) prepare () -#define ATTR &a +#define ATTR attr #include "tst-mutex6.c" -- cgit v1.1