From 6b2c5b5da1a0394c9ffa81fc55e73920be9f6bff Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 20 Jun 2022 12:04:43 +1000 Subject: testsuite: Fix gcc 12 warnings --- testsuites/psxtests/psxhdrs/pthread/pthread_mutexattr_getprotocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuites/psxtests/psxhdrs/pthread/pthread_mutexattr_getprotocol.c') diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_mutexattr_getprotocol.c b/testsuites/psxtests/psxhdrs/pthread/pthread_mutexattr_getprotocol.c index 99cd093b17..da16c786b0 100644 --- a/testsuites/psxtests/psxhdrs/pthread/pthread_mutexattr_getprotocol.c +++ b/testsuites/psxtests/psxhdrs/pthread/pthread_mutexattr_getprotocol.c @@ -45,8 +45,8 @@ int test( void ); int test( void ) { - pthread_mutexattr_t attribute; - int protocol; + pthread_mutexattr_t attribute = { 0 }; + int protocol = 0; int result; result = pthread_mutexattr_getprotocol( &attribute, &protocol ); -- cgit v1.2.3