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/time/ctime_r.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testsuites/psxtests/psxhdrs/time/ctime_r.c') diff --git a/testsuites/psxtests/psxhdrs/time/ctime_r.c b/testsuites/psxtests/psxhdrs/time/ctime_r.c index b973a504ae..30f1285d0a 100644 --- a/testsuites/psxtests/psxhdrs/time/ctime_r.c +++ b/testsuites/psxtests/psxhdrs/time/ctime_r.c @@ -43,7 +43,7 @@ int test( void ) { char *buffer_pointer; char buffer[ 80 ]; - time_t time; + time_t time = { 0 }; buffer_pointer = ctime_r( &time, buffer ); -- cgit v1.2.3