about summary refs log tree commit diff
path: root/nptl/tst-mutexpi6.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-10-24 21:43:33 -0400
committerUlrich Drepper <drepper@gmail.com>2011-10-24 21:43:33 -0400
commit485683c35f020bd8b926e9673adb9b748380e8ce (patch)
tree5214339ad75335cf2147ff1a6635dc7bd360be5c /nptl/tst-mutexpi6.c
parenta0cf1edd4cf2b3bf1ec2f772b47c8eaafd899383 (diff)
downloadglibc-485683c35f020bd8b926e9673adb9b748380e8ce.tar.gz
glibc-485683c35f020bd8b926e9673adb9b748380e8ce.tar.xz
glibc-485683c35f020bd8b926e9673adb9b748380e8ce.zip
Remove warnings in NPTL tests
Diffstat (limited to 'nptl/tst-mutexpi6.c')
-rw-r--r--nptl/tst-mutexpi6.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/nptl/tst-mutexpi6.c b/nptl/tst-mutexpi6.c
index 42cda377d1..8881a1d2c0 100644
--- a/nptl/tst-mutexpi6.c
+++ b/nptl/tst-mutexpi6.c
@@ -3,11 +3,13 @@
 #include <stdlib.h>
 
 
-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"