about summary refs log tree commit diff
path: root/nptl/tst-mutex9.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-mutex9.c
parenta0cf1edd4cf2b3bf1ec2f772b47c8eaafd899383 (diff)
downloadglibc-485683c35f020bd8b926e9673adb9b748380e8ce.tar.gz
glibc-485683c35f020bd8b926e9673adb9b748380e8ce.tar.xz
glibc-485683c35f020bd8b926e9673adb9b748380e8ce.zip
Remove warnings in NPTL tests
Diffstat (limited to 'nptl/tst-mutex9.c')
-rw-r--r--nptl/tst-mutex9.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/nptl/tst-mutex9.c b/nptl/tst-mutex9.c
index f9d379343d..bdf1dc8420 100644
--- a/nptl/tst-mutex9.c
+++ b/nptl/tst-mutex9.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 2003, 2004, 2006, 2011 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2003.
 
@@ -37,7 +37,6 @@ do_test (void)
   pthread_mutex_t *m;
   pthread_mutexattr_t a;
   pid_t pid;
-  char *p;
 
   fd = mkstemp (tmpfname);
   if (fd == -1)
@@ -68,7 +67,6 @@ do_test (void)
 
   m = (pthread_mutex_t *) (((uintptr_t) mem + __alignof (pthread_mutex_t))
 			   & ~(__alignof (pthread_mutex_t) - 1));
-  p = (char *) (m + 1);
 
   if (pthread_mutexattr_init (&a) != 0)
     {