Message ID | 20211119074602.857595-10-lkml@jv-coder.de |
---|---|
State | Accepted |
Headers | show |
Series | Fix or suppress compiler warnings in posix/conformance/interfaces | expand |
Hi! Applied, thanks.
diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_destroy/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_destroy/4-1.c index d0aa32f8a..6205d8d29 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_destroy/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_destroy/4-1.c @@ -15,6 +15,9 @@ * */ +/* This test explicitly tries to pass null to a parameter, that should not be NULL */ +#pragma GCC diagnostic ignored "-Wnonnull" + #include <pthread.h> #include <stdio.h> #include <errno.h> diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_destroy/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_destroy/4-1.c index 094739030..cad698012 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_destroy/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_destroy/4-1.c @@ -15,6 +15,9 @@ * */ +/* This test explicitly tries to pass null to a parameter, that should not be NULL */ +#pragma GCC diagnostic ignored "-Wnonnull" + #include <pthread.h> #include <stdio.h> #include <errno.h>