@@ -19,6 +19,7 @@
#include <pthread.h>
#include <stdio.h>
#include <errno.h>
+#include <libc-internal.h>
#ifndef ATTR
@@ -32,6 +33,11 @@ do_test (void)
pthread_mutex_t m;
int e = pthread_mutex_init (&m, ATTR);
+ /* When included from tst-mutexpi1.c, there is a warning "the
+ comparison will always evaluate as 'true' for the address of 'a'
+ will never be NULL". */
+ DIAG_PUSH_NEEDS_COMMENT;
+ DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Waddress");
if (ATTR != NULL && e == ENOTSUP)
{
puts ("cannot support selected type of mutexes");
@@ -48,6 +54,7 @@ do_test (void)
puts ("mutexattr_destroy failed");
return 1;
}
+ DIAG_POP_NEEDS_COMMENT;
if (pthread_mutex_lock (&m) != 0)
{