<div dir="auto">Ok</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 19, 2022, 9:10 PM  <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Chris Johns <<a href="mailto:chrisj@rtems.org" target="_blank" rel="noreferrer">chrisj@rtems.org</a>><br>
<br>
---<br>
 testsuites/libtests/POSIX/readv.c                         | 2 +-<br>
 testsuites/libtests/POSIX/sigismember.c                   | 2 +-<br>
 testsuites/libtests/POSIX/sigprocmask.c                   | 3 ++-<br>
 testsuites/libtests/POSIX/writev.c                        | 2 +-<br>
 testsuites/psxtests/psxhdrs/arpa/inet/inet_ntop.c         | 2 +-<br>
 testsuites/psxtests/psxhdrs/fcntl/openat.c                | 4 ++--<br>
 testsuites/psxtests/psxhdrs/netdb/gethostbyaddr.c         | 2 +-<br>
 .../psxhdrs/pthread/pthread_attr_getdetachstate.c         | 4 ++--<br>
 .../psxtests/psxhdrs/pthread/pthread_attr_getguardsize.c  | 4 ++--<br>
 .../psxhdrs/pthread/pthread_attr_getinheritsched.c        | 4 ++--<br>
 .../psxtests/psxhdrs/pthread/pthread_attr_getschedparam.c | 4 ++--<br>
 .../psxhdrs/pthread/pthread_attr_getschedpolicy.c         | 4 ++--<br>
 .../psxtests/psxhdrs/pthread/pthread_attr_getscope.c      | 4 ++--<br>
 .../psxtests/psxhdrs/pthread/pthread_attr_getstack.c      | 2 +-<br>
 .../psxtests/psxhdrs/pthread/pthread_attr_getstackaddr.c  | 2 +-<br>
 .../psxtests/psxhdrs/pthread/pthread_attr_getstacksize.c  | 4 ++--<br>
 .../psxtests/psxhdrs/pthread/pthread_attr_setschedparam.c | 4 ++--<br>
 testsuites/psxtests/psxhdrs/pthread/pthread_cond_init.c   | 2 +-<br>
 .../psxtests/psxhdrs/pthread/pthread_cond_timedwait.c     | 2 +-<br>
 .../psxhdrs/pthread/pthread_condattr_getpshared.c         | 2 +-<br>
 testsuites/psxtests/psxhdrs/pthread/pthread_create.c      | 2 +-<br>
 .../psxhdrs/pthread/pthread_mutex_getprioceiling.c        | 4 ++--<br>
 testsuites/psxtests/psxhdrs/pthread/pthread_mutex_init.c  | 2 +-<br>
 .../psxtests/psxhdrs/pthread/pthread_mutex_timedlock.c    | 2 +-<br>
 .../psxhdrs/pthread/pthread_mutexattr_getprioceiling.c    | 2 +-<br>
 .../psxhdrs/pthread/pthread_mutexattr_getprotocol.c       | 4 ++--<br>
 .../psxhdrs/pthread/pthread_mutexattr_getpshared.c        | 4 ++--<br>
 testsuites/psxtests/psxhdrs/sys/select/pselect.c          | 4 ++--<br>
 testsuites/psxtests/psxhdrs/sys/socket/bind.c             | 2 +-<br>
 testsuites/psxtests/psxhdrs/sys/socket/connect.c          | 6 +++---<br>
 testsuites/psxtests/psxhdrs/sys/socket/getsockopt.c       | 2 +-<br>
 testsuites/psxtests/psxhdrs/sys/socket/send.c             | 2 +-<br>
 testsuites/psxtests/psxhdrs/sys/socket/sendmsg.c          | 2 +-<br>
 testsuites/psxtests/psxhdrs/sys/socket/sendto.c           | 4 ++--<br>
 testsuites/psxtests/psxhdrs/sys/socket/setsockopt.c       | 2 +-<br>
 testsuites/psxtests/psxhdrs/sys/stat/futimens.c           | 4 ++--<br>
 testsuites/psxtests/psxhdrs/sys/stat/utimensat.c          | 4 ++--<br>
 testsuites/psxtests/psxhdrs/sys/time/utimes.c             | 8 ++++----<br>
 testsuites/psxtests/psxhdrs/termios/cfgetispeed.c         | 4 ++--<br>
 testsuites/psxtests/psxhdrs/termios/cfgetospeed.c         | 4 ++--<br>
 testsuites/psxtests/psxhdrs/termios/cfsetispeed.c         | 4 ++--<br>
 testsuites/psxtests/psxhdrs/termios/cfsetospeed.c         | 4 ++--<br>
 testsuites/psxtests/psxhdrs/termios/tcgetattr.c           | 4 ++--<br>
 testsuites/psxtests/psxhdrs/termios/tcsetattr.c           | 4 ++--<br>
 testsuites/psxtests/psxhdrs/time/asctime.c                | 2 +-<br>
 testsuites/psxtests/psxhdrs/time/asctime_r.c              | 2 +-<br>
 testsuites/psxtests/psxhdrs/time/clock_settime.c          | 2 +-<br>
 testsuites/psxtests/psxhdrs/time/ctime.c                  | 2 +-<br>
 testsuites/psxtests/psxhdrs/time/ctime_r.c                | 2 +-<br>
 testsuites/psxtests/psxhdrs/time/gmtime.c                 | 2 +-<br>
 testsuites/psxtests/psxhdrs/time/gmtime_r.c               | 2 +-<br>
 testsuites/psxtests/psxhdrs/time/localtime.c              | 2 +-<br>
 testsuites/psxtests/psxhdrs/time/localtime_r.c            | 2 +-<br>
 testsuites/psxtests/psxhdrs/time/strftime.c               | 2 +-<br>
 testsuites/psxtests/psxhdrs/unistd/setgroups.c            | 2 +-<br>
 testsuites/psxtests/psxhdrs/utime/utime.c                 | 2 +-<br>
 testsuites/psxtests/psxhdrs/wchar/mbsinit.c               | 4 ++--<br>
 testsuites/psxtests/psxkey07/init.c                       | 3 ++-<br>
 testsuites/psxtests/psxkey08/init.c                       | 2 +-<br>
 testsuites/psxtests/psxmsgq01/init.c                      | 2 +-<br>
 testsuites/sptests/sp68/init.c                            | 2 +-<br>
 testsuites/sptests/spfatal32/init.c                       | 5 +++++<br>
 62 files changed, 96 insertions(+), 89 deletions(-)<br>
<br>
diff --git a/testsuites/libtests/POSIX/readv.c b/testsuites/libtests/POSIX/readv.c<br>
index a980e9468c..6b0bf63f94 100644<br>
--- a/testsuites/libtests/POSIX/readv.c<br>
+++ b/testsuites/libtests/POSIX/readv.c<br>
@@ -14,7 +14,7 @@<br>
<br>
 int main(void)<br>
 {<br>
-  struct iovec iov;<br>
+  struct iovec iov = { 0 };<br>
   int count = 4;<br>
   ssize_t ret;<br>
<br>
diff --git a/testsuites/libtests/POSIX/sigismember.c b/testsuites/libtests/POSIX/sigismember.c<br>
index ed980b70f0..f4c7d37cb2 100644<br>
--- a/testsuites/libtests/POSIX/sigismember.c<br>
+++ b/testsuites/libtests/POSIX/sigismember.c<br>
@@ -14,7 +14,7 @@<br>
<br>
 int main(void)<br>
 {<br>
-  sigset_t set;<br>
+  sigset_t set = { 0 };<br>
   int status;<br>
   status = sigismember(&set, 21);<br>
<br>
diff --git a/testsuites/libtests/POSIX/sigprocmask.c b/testsuites/libtests/POSIX/sigprocmask.c<br>
index ba634e4660..25de0c28c7 100644<br>
--- a/testsuites/libtests/POSIX/sigprocmask.c<br>
+++ b/testsuites/libtests/POSIX/sigprocmask.c<br>
@@ -15,7 +15,8 @@<br>
 int main(void)<br>
 {<br>
   int rc;<br>
-  sigset_t set1, set2;<br>
+  sigset_t set1 = { 0 };<br>
+  sigset_t set2 = { 0 };<br>
<br>
   rc = sigprocmask(SIG_BLOCK, &set1, &set2);<br>
   (void) rc;<br>
diff --git a/testsuites/libtests/POSIX/writev.c b/testsuites/libtests/POSIX/writev.c<br>
index 853b8a8ced..5b5068db65 100644<br>
--- a/testsuites/libtests/POSIX/writev.c<br>
+++ b/testsuites/libtests/POSIX/writev.c<br>
@@ -14,7 +14,7 @@<br>
<br>
 int main(void)<br>
 {<br>
-  struct iovec iov;<br>
+  struct iovec iov = { 0 };<br>
   int count = 4;<br>
   ssize_t ret;<br>
<br>
diff --git a/testsuites/psxtests/psxhdrs/arpa/inet/inet_ntop.c b/testsuites/psxtests/psxhdrs/arpa/inet/inet_ntop.c<br>
index c3e3828b0b..5b64b565cc 100644<br>
--- a/testsuites/psxtests/psxhdrs/arpa/inet/inet_ntop.c<br>
+++ b/testsuites/psxtests/psxhdrs/arpa/inet/inet_ntop.c<br>
@@ -32,7 +32,7 @@ int test(void);<br>
 int test(void)<br>
 {<br>
   int af = 0;<br>
-  struct in_addr addr;<br>
+  struct in_addr addr = { 0 };<br>
   char *dst = "string";<br>
<br>
   const char *ret = inet_ntop(af, &addr, dst, sizeof(dst));<br>
diff --git a/testsuites/psxtests/psxhdrs/fcntl/openat.c b/testsuites/psxtests/psxhdrs/fcntl/openat.c<br>
index 927d56774b..1c15cd0867 100644<br>
--- a/testsuites/psxtests/psxhdrs/fcntl/openat.c<br>
+++ b/testsuites/psxtests/psxhdrs/fcntl/openat.c<br>
@@ -5,7 +5,7 @@<br>
<br>
 /*<br>
  * SPDX-License-Identifier: BSD-2-Clause<br>
- * <br>
+ *<br>
  * Copyright (C) 2018, Zenon<br>
  *<br>
  * Redistribution and use in source and binary forms, with or without<br>
@@ -40,7 +40,7 @@ int test(void);<br>
<br>
 int test(void){<br>
   int i0, i1;<br>
-  char c;<br>
+  char c = '\0';<br>
<br>
   i0 = 0;<br>
   i1 = 0;<br>
diff --git a/testsuites/psxtests/psxhdrs/netdb/gethostbyaddr.c b/testsuites/psxtests/psxhdrs/netdb/gethostbyaddr.c<br>
index 07d734334b..cd2a271c37 100644<br>
--- a/testsuites/psxtests/psxhdrs/netdb/gethostbyaddr.c<br>
+++ b/testsuites/psxtests/psxhdrs/netdb/gethostbyaddr.c<br>
@@ -43,7 +43,7 @@<br>
  int test( void )<br>
  {<br>
    struct hostent *host;<br>
-   struct in_addr ipv4addr;<br>
+   struct in_addr ipv4addr = { 0 };<br>
<br>
    host = gethostbyaddr( &ipv4addr, sizeof(ipv4addr), AF_INET );<br>
<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getdetachstate.c b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getdetachstate.c<br>
index 9bac990cd3..e2341a582d 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getdetachstate.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getdetachstate.c<br>
@@ -42,8 +42,8 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  pthread_attr_t  attribute;<br>
-  int             state;<br>
+  pthread_attr_t  attribute = { 0 };<br>
+  int             state = 0;<br>
   int             result;<br>
<br>
   result = pthread_attr_getdetachstate( &attribute, &state );<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getguardsize.c b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getguardsize.c<br>
index 6542efdf13..5a816d2115 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getguardsize.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getguardsize.c<br>
@@ -42,8 +42,8 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  pthread_attr_t  attribute;<br>
-  size_t          size;<br>
+  pthread_attr_t  attribute = { 0 };<br>
+  size_t          size = 0;<br>
   int             result;<br>
<br>
   result = pthread_attr_getguardsize( &attribute, &size );<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getinheritsched.c b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getinheritsched.c<br>
index a76172908b..86a4547164 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getinheritsched.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getinheritsched.c<br>
@@ -42,8 +42,8 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  pthread_attr_t  attr;<br>
-  int             inheritsched;<br>
+  pthread_attr_t  attr = { 0 };<br>
+  int             inheritsched = 0;<br>
   int             result;<br>
<br>
   result = pthread_attr_getinheritsched( &attr, &inheritsched );<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getschedparam.c b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getschedparam.c<br>
index cc2dcb0198..743e2c4d21 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getschedparam.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getschedparam.c<br>
@@ -42,8 +42,8 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  pthread_attr_t      attr;<br>
-  struct sched_param  param;<br>
+  pthread_attr_t      attr = { 0 };<br>
+  struct sched_param  param = { 0 };<br>
   int                 result;<br>
<br>
   result = pthread_attr_getschedparam( &attr, &param );<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getschedpolicy.c b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getschedpolicy.c<br>
index a341eeb337..60595d1a7a 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getschedpolicy.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getschedpolicy.c<br>
@@ -42,8 +42,8 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  pthread_attr_t  attr;<br>
-  int             policy;<br>
+  pthread_attr_t  attr = { 0 };<br>
+  int             policy = 0;<br>
   int             result;<br>
<br>
   result = pthread_attr_getschedpolicy( &attr, &policy );<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getscope.c b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getscope.c<br>
index 7023c29fce..7b97a7859c 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getscope.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getscope.c<br>
@@ -42,8 +42,8 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  pthread_attr_t  attr;<br>
-  int             contentionscope;<br>
+  pthread_attr_t  attr = { 0 };<br>
+  int             contentionscope = 0;<br>
   int             result;<br>
<br>
   result = pthread_attr_getscope( &attr, &contentionscope );<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getstack.c b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getstack.c<br>
index 177b775baf..f2d8a76362 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getstack.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getstack.c<br>
@@ -47,7 +47,7 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  pthread_attr_t  attribute;<br>
+  pthread_attr_t  attribute = { 0 };<br>
   void           *stackaddr;<br>
   size_t          stacksize;<br>
   int             result;<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getstackaddr.c b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getstackaddr.c<br>
index 4e7c17f40a..ed718c76d9 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getstackaddr.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getstackaddr.c<br>
@@ -47,7 +47,7 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  pthread_attr_t  attribute;<br>
+  pthread_attr_t  attribute = { 0 };<br>
   void           *stackaddr;<br>
   int             result;<br>
<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getstacksize.c b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getstacksize.c<br>
index d9f8c4f718..ff9237a8eb 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getstacksize.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_getstacksize.c<br>
@@ -46,8 +46,8 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  pthread_attr_t  attribute;<br>
-  size_t          size;<br>
+  pthread_attr_t  attribute = { 0 };<br>
+  size_t          size = 0;<br>
   int             result;<br>
<br>
   result = pthread_attr_getstacksize( &attribute, &size );<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_setschedparam.c b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_setschedparam.c<br>
index 70f001fc67..643ccde907 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_attr_setschedparam.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_attr_setschedparam.c<br>
@@ -42,8 +42,8 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  pthread_attr_t      attr;<br>
-  struct sched_param  param;<br>
+  pthread_attr_t      attr = { 0 };<br>
+  struct sched_param  param = { 0 };<br>
   int                 result;<br>
<br>
   result = pthread_attr_setschedparam( &attr, &param );<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_cond_init.c b/testsuites/psxtests/psxhdrs/pthread/pthread_cond_init.c<br>
index 86f74d7cff..b7e2e2ad34 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_cond_init.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_cond_init.c<br>
@@ -43,7 +43,7 @@ int test( void );<br>
 int test( void )<br>
 {<br>
   pthread_cond_t     cond = PTHREAD_COND_INITIALIZER;<br>
-  pthread_condattr_t attribute;<br>
+  pthread_condattr_t attribute = { 0 };<br>
   int result;<br>
<br>
   result = pthread_cond_init( &cond, &attribute );<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_cond_timedwait.c b/testsuites/psxtests/psxhdrs/pthread/pthread_cond_timedwait.c<br>
index 1c38af0067..72427266c1 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_cond_timedwait.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_cond_timedwait.c<br>
@@ -44,7 +44,7 @@ int test( void )<br>
 {<br>
   pthread_cond_t  cond  = PTHREAD_COND_INITIALIZER;<br>
   pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;<br>
-  struct timespec abstime;<br>
+  struct timespec abstime = { 0 };<br>
   int result;<br>
<br>
   result = pthread_cond_timedwait( &cond, &mutex, &abstime );<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_condattr_getpshared.c b/testsuites/psxtests/psxhdrs/pthread/pthread_condattr_getpshared.c<br>
index b37f1c00b9..21af201c65 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_condattr_getpshared.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_condattr_getpshared.c<br>
@@ -45,7 +45,7 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  pthread_condattr_t attribute;<br>
+  pthread_condattr_t attribute = { 0 };<br>
   int                pshared;<br>
   int                result;<br>
<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_create.c b/testsuites/psxtests/psxhdrs/pthread/pthread_create.c<br>
index bde6105933..de4f6b0bec 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_create.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_create.c<br>
@@ -53,7 +53,7 @@ void *test_task(<br>
 int test( void )<br>
 {<br>
   pthread_t       thread;<br>
-  pthread_attr_t  attribute;<br>
+  pthread_attr_t  attribute = { 0 };<br>
   void           *arg = NULL;<br>
   int             result;<br>
<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_mutex_getprioceiling.c b/testsuites/psxtests/psxhdrs/pthread/pthread_mutex_getprioceiling.c<br>
index 4f652283df..65b44fa779 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_mutex_getprioceiling.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_mutex_getprioceiling.c<br>
@@ -45,8 +45,8 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  pthread_mutex_t mutex;<br>
-  int             prioceiling;<br>
+  pthread_mutex_t mutex = { 0 };<br>
+  int             prioceiling = 0;<br>
   int             result;<br>
<br>
   result = pthread_mutex_getprioceiling( &mutex, &prioceiling );<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_mutex_init.c b/testsuites/psxtests/psxhdrs/pthread/pthread_mutex_init.c<br>
index 085d6f9835..1b42dbc0f3 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_mutex_init.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_mutex_init.c<br>
@@ -43,7 +43,7 @@ int test( void );<br>
 int test( void )<br>
 {<br>
   pthread_mutex_t     mutex = PTHREAD_MUTEX_INITIALIZER;<br>
-  pthread_mutexattr_t attribute;<br>
+  pthread_mutexattr_t attribute = { 0 };<br>
   int result;<br>
<br>
   result = pthread_mutex_init( &mutex, &attribute );<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_mutex_timedlock.c b/testsuites/psxtests/psxhdrs/pthread/pthread_mutex_timedlock.c<br>
index c402d17a57..02f864493d 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_mutex_timedlock.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_mutex_timedlock.c<br>
@@ -46,7 +46,7 @@ int test( void );<br>
 int test( void )<br>
 {<br>
   pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;<br>
-  struct timespec timeout;<br>
+  struct timespec timeout = { 0 };<br>
   int result;<br>
<br>
   result = pthread_mutex_timedlock( &mutex, &timeout );<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_mutexattr_getprioceiling.c b/testsuites/psxtests/psxhdrs/pthread/pthread_mutexattr_getprioceiling.c<br>
index a53535881c..675ef02d38 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_mutexattr_getprioceiling.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_mutexattr_getprioceiling.c<br>
@@ -45,7 +45,7 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  pthread_mutexattr_t attribute;<br>
+  pthread_mutexattr_t attribute = { 0 };<br>
   int                 prioceiling = 0;<br>
   int                 result;<br>
<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_mutexattr_getprotocol.c b/testsuites/psxtests/psxhdrs/pthread/pthread_mutexattr_getprotocol.c<br>
index 99cd093b17..da16c786b0 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_mutexattr_getprotocol.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_mutexattr_getprotocol.c<br>
@@ -45,8 +45,8 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  pthread_mutexattr_t attribute;<br>
-  int                 protocol;<br>
+  pthread_mutexattr_t attribute = { 0 };<br>
+  int                 protocol = 0;<br>
   int                 result;<br>
<br>
   result = pthread_mutexattr_getprotocol( &attribute, &protocol );<br>
diff --git a/testsuites/psxtests/psxhdrs/pthread/pthread_mutexattr_getpshared.c b/testsuites/psxtests/psxhdrs/pthread/pthread_mutexattr_getpshared.c<br>
index 3735b76b41..d8e8eaabeb 100644<br>
--- a/testsuites/psxtests/psxhdrs/pthread/pthread_mutexattr_getpshared.c<br>
+++ b/testsuites/psxtests/psxhdrs/pthread/pthread_mutexattr_getpshared.c<br>
@@ -45,8 +45,8 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  pthread_mutexattr_t attribute;<br>
-  int                 pshared;<br>
+  pthread_mutexattr_t attribute = { 0 };<br>
+  int                 pshared = 0;<br>
   int                 result;<br>
<br>
   result = pthread_mutexattr_getpshared( &attribute, &pshared );<br>
diff --git a/testsuites/psxtests/psxhdrs/sys/select/pselect.c b/testsuites/psxtests/psxhdrs/sys/select/pselect.c<br>
index d35a0d0921..ad96dda686 100644<br>
--- a/testsuites/psxtests/psxhdrs/sys/select/pselect.c<br>
+++ b/testsuites/psxtests/psxhdrs/sys/select/pselect.c<br>
@@ -45,8 +45,8 @@ int test( void )<br>
   fd_set readfds;<br>
   fd_set writefds;<br>
   fd_set errorfds;<br>
-  struct timespec timeout;<br>
-  sigset_t sigmask;<br>
+  struct timespec timeout = { 0 };<br>
+  sigset_t sigmask = { 0 };<br>
<br>
   return_value = pselect(nfds, &readfds, &writefds, &errorfds, &timeout, &sigmask);<br>
   return return_value;<br>
diff --git a/testsuites/psxtests/psxhdrs/sys/socket/bind.c b/testsuites/psxtests/psxhdrs/sys/socket/bind.c<br>
index 3da39b31ff..2fa19f2c26 100644<br>
--- a/testsuites/psxtests/psxhdrs/sys/socket/bind.c<br>
+++ b/testsuites/psxtests/psxhdrs/sys/socket/bind.c<br>
@@ -44,7 +44,7 @@ int test(void);<br>
 int test(void)<br>
 {<br>
   int              sockfd = 4;<br>
-  struct  sockaddr addr;<br>
+  struct  sockaddr addr = { 0 };<br>
   socklen_t        addrlen = sizeof(addr);<br>
<br>
   return bind(sockfd, &addr, addrlen);<br>
diff --git a/testsuites/psxtests/psxhdrs/sys/socket/connect.c b/testsuites/psxtests/psxhdrs/sys/socket/connect.c<br>
index 1b8f5b9001..afb560ff52 100644<br>
--- a/testsuites/psxtests/psxhdrs/sys/socket/connect.c<br>
+++ b/testsuites/psxtests/psxhdrs/sys/socket/connect.c<br>
@@ -43,9 +43,9 @@ int test(void);<br>
<br>
 int test(void)<br>
 {<br>
-  int              sockfd = 4;<br>
-  struct  sockaddr addr;<br>
-  socklen_t        addrlen = sizeof(addr);<br>
+  int             sockfd = 4;<br>
+  struct sockaddr addr = { 0 };<br>
+  socklen_t       addrlen = sizeof(addr);<br>
<br>
   return connect(sockfd, &addr, addrlen);<br>
 }<br>
diff --git a/testsuites/psxtests/psxhdrs/sys/socket/getsockopt.c b/testsuites/psxtests/psxhdrs/sys/socket/getsockopt.c<br>
index 0ecf27dda5..e0cd442441 100644<br>
--- a/testsuites/psxtests/psxhdrs/sys/socket/getsockopt.c<br>
+++ b/testsuites/psxtests/psxhdrs/sys/socket/getsockopt.c<br>
@@ -48,7 +48,7 @@ int test(void)<br>
   int              optname = 67;<br>
   int              value;<br>
   void            *optval = &value;<br>
-  socklen_t        optlen;<br>
+  socklen_t        optlen = { 0 };<br>
<br>
   return getsockopt(sockfd, level, optname, optval, &optlen);<br>
 }<br>
diff --git a/testsuites/psxtests/psxhdrs/sys/socket/send.c b/testsuites/psxtests/psxhdrs/sys/socket/send.c<br>
index b93a87f482..de2ad3ba5a 100644<br>
--- a/testsuites/psxtests/psxhdrs/sys/socket/send.c<br>
+++ b/testsuites/psxtests/psxhdrs/sys/socket/send.c<br>
@@ -44,7 +44,7 @@ ssize_t test(void);<br>
 ssize_t test(void)<br>
 {<br>
   int     sockfd = 4;<br>
-  int     buffer;<br>
+  int     buffer = 0;<br>
   void   *buf = &buffer;<br>
   size_t  len = sizeof(buffer);<br>
   int     flags = 7;<br>
diff --git a/testsuites/psxtests/psxhdrs/sys/socket/sendmsg.c b/testsuites/psxtests/psxhdrs/sys/socket/sendmsg.c<br>
index 3205271572..a14b8ff8d4 100644<br>
--- a/testsuites/psxtests/psxhdrs/sys/socket/sendmsg.c<br>
+++ b/testsuites/psxtests/psxhdrs/sys/socket/sendmsg.c<br>
@@ -44,7 +44,7 @@ ssize_t test(void);<br>
 ssize_t test(void)<br>
 {<br>
   int           sockfd = 4;<br>
-  struct msghdr msg;<br>
+  struct msghdr msg = { 0 };<br>
   int           flags = 7;<br>
<br>
<br>
diff --git a/testsuites/psxtests/psxhdrs/sys/socket/sendto.c b/testsuites/psxtests/psxhdrs/sys/socket/sendto.c<br>
index 298d17f4ec..5050f1a0a5 100644<br>
--- a/testsuites/psxtests/psxhdrs/sys/socket/sendto.c<br>
+++ b/testsuites/psxtests/psxhdrs/sys/socket/sendto.c<br>
@@ -44,11 +44,11 @@ ssize_t test(void);<br>
 ssize_t test(void)<br>
 {<br>
   int              sockfd = 4;<br>
-  int              buffer;<br>
+  int              buffer = 0;<br>
   const void      *buf = &buffer;<br>
   size_t           len = sizeof(buffer);<br>
   int              flags = 7;<br>
-  struct  sockaddr dest_addr;<br>
+  struct  sockaddr dest_addr = { 0 };<br>
   socklen_t        addrlen = sizeof(dest_addr);<br>
<br>
   return sendto(sockfd, buf, len, flags, &dest_addr, addrlen);<br>
diff --git a/testsuites/psxtests/psxhdrs/sys/socket/setsockopt.c b/testsuites/psxtests/psxhdrs/sys/socket/setsockopt.c<br>
index d373add6de..e4d21d3837 100644<br>
--- a/testsuites/psxtests/psxhdrs/sys/socket/setsockopt.c<br>
+++ b/testsuites/psxtests/psxhdrs/sys/socket/setsockopt.c<br>
@@ -46,7 +46,7 @@ int test(void)<br>
   int              sockfd = 4;<br>
   int              level = SOL_SOCKET;<br>
   int              optname = 67;<br>
-  int              value;<br>
+  int              value = 0;<br>
   void            *optval = &value;<br>
   socklen_t        optlen = sizeof(value);<br>
<br>
diff --git a/testsuites/psxtests/psxhdrs/sys/stat/futimens.c b/testsuites/psxtests/psxhdrs/sys/stat/futimens.c<br>
index 75fa0ce0e6..9892352b71 100644<br>
--- a/testsuites/psxtests/psxhdrs/sys/stat/futimens.c<br>
+++ b/testsuites/psxtests/psxhdrs/sys/stat/futimens.c<br>
@@ -42,9 +42,9 @@ int test( void )<br>
 {<br>
        int return_value;<br>
        int fd = 1;<br>
-       struct timespec times[2];<br>
+       struct timespec times[2] = { 0 };<br>
<br>
<br>
        return_value = futimens(fd, times);<br>
        return (return_value != -1);<br>
-}<br>
\ No newline at end of file<br>
+}<br>
diff --git a/testsuites/psxtests/psxhdrs/sys/stat/utimensat.c b/testsuites/psxtests/psxhdrs/sys/stat/utimensat.c<br>
index c8c0767ce3..b74cc1a44b 100644<br>
--- a/testsuites/psxtests/psxhdrs/sys/stat/utimensat.c<br>
+++ b/testsuites/psxtests/psxhdrs/sys/stat/utimensat.c<br>
@@ -44,9 +44,9 @@ int test( void )<br>
        int return_value;<br>
        int fd = 1;<br>
        char *path = "/";<br>
-       struct timespec times[2];<br>
+       struct timespec times[2] = { 0 };<br>
        int flag = AT_SYMLINK_NOFOLLOW;<br>
<br>
        return_value = utimensat(fd, path, times, flag);<br>
        return (return_value != -1);<br>
-}<br>
\ No newline at end of file<br>
+}<br>
diff --git a/testsuites/psxtests/psxhdrs/sys/time/utimes.c b/testsuites/psxtests/psxhdrs/sys/time/utimes.c<br>
index ae69eb5ded..bebc7a77b4 100644<br>
--- a/testsuites/psxtests/psxhdrs/sys/time/utimes.c<br>
+++ b/testsuites/psxtests/psxhdrs/sys/time/utimes.c<br>
@@ -5,7 +5,7 @@<br>
<br>
 /*<br>
  * SPDX-License-Identifier: BSD-2-Clause<br>
- * <br>
+ *<br>
  * Copyright (C) 2018, Zenon<br>
  *<br>
  * Redistribution and use in source and binary forms, with or without<br>
@@ -41,8 +41,8 @@ int test(void);<br>
 int test(void)<br>
 {<br>
   int callback;<br>
-  struct timeval tv;<br>
-  <br>
-  callback = utimes(NULL, &tv);<br>
+  struct timeval tv[2] = { 0 };<br>
+<br>
+  callback = utimes(NULL, &tv[0]);<br>
   return (callback == -1);<br>
 }<br>
diff --git a/testsuites/psxtests/psxhdrs/termios/cfgetispeed.c b/testsuites/psxtests/psxhdrs/termios/cfgetispeed.c<br>
index e98a28179e..0c8d304a71 100644<br>
--- a/testsuites/psxtests/psxhdrs/termios/cfgetispeed.c<br>
+++ b/testsuites/psxtests/psxhdrs/termios/cfgetispeed.c<br>
@@ -40,11 +40,11 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  struct termios term;<br>
+  struct termios term = { 0 };<br>
   speed_t rate;<br>
<br>
   rate = cfgetispeed(&term);<br>
<br>
   (void) rate;<br>
   return 0;<br>
-}<br>
\ No newline at end of file<br>
+}<br>
diff --git a/testsuites/psxtests/psxhdrs/termios/cfgetospeed.c b/testsuites/psxtests/psxhdrs/termios/cfgetospeed.c<br>
index b326a78378..4d2e23ed50 100644<br>
--- a/testsuites/psxtests/psxhdrs/termios/cfgetospeed.c<br>
+++ b/testsuites/psxtests/psxhdrs/termios/cfgetospeed.c<br>
@@ -40,11 +40,11 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  struct termios term;<br>
+  struct termios term = { 0 };<br>
   speed_t rate;<br>
<br>
   rate = cfgetospeed(&term);<br>
<br>
   (void) rate;<br>
   return 0;<br>
-}<br>
\ No newline at end of file<br>
+}<br>
diff --git a/testsuites/psxtests/psxhdrs/termios/cfsetispeed.c b/testsuites/psxtests/psxhdrs/termios/cfsetispeed.c<br>
index b73dbffce1..0f8ddfff57 100644<br>
--- a/testsuites/psxtests/psxhdrs/termios/cfsetispeed.c<br>
+++ b/testsuites/psxtests/psxhdrs/termios/cfsetispeed.c<br>
@@ -41,10 +41,10 @@ int test( void );<br>
 int test( void )<br>
 {<br>
   int result;<br>
-  struct termios term;<br>
+  struct termios term = { 0 };<br>
   speed_t speed = B0;<br>
<br>
   result = cfsetispeed(&term, speed);<br>
<br>
   return result;<br>
-}<br>
\ No newline at end of file<br>
+}<br>
diff --git a/testsuites/psxtests/psxhdrs/termios/cfsetospeed.c b/testsuites/psxtests/psxhdrs/termios/cfsetospeed.c<br>
index 8377fc6e26..8d5404c954 100644<br>
--- a/testsuites/psxtests/psxhdrs/termios/cfsetospeed.c<br>
+++ b/testsuites/psxtests/psxhdrs/termios/cfsetospeed.c<br>
@@ -41,10 +41,10 @@ int test( void );<br>
 int test( void )<br>
 {<br>
   int result;<br>
-  struct termios term;<br>
+  struct termios term = { 0 };<br>
   speed_t speed = B0;<br>
<br>
   result = cfsetospeed(&term, speed);<br>
<br>
   return result;<br>
-}<br>
\ No newline at end of file<br>
+}<br>
diff --git a/testsuites/psxtests/psxhdrs/termios/tcgetattr.c b/testsuites/psxtests/psxhdrs/termios/tcgetattr.c<br>
index d00336b214..843b7c8281 100644<br>
--- a/testsuites/psxtests/psxhdrs/termios/tcgetattr.c<br>
+++ b/testsuites/psxtests/psxhdrs/termios/tcgetattr.c<br>
@@ -42,9 +42,9 @@ int test( void )<br>
 {<br>
   int result;<br>
   int fildes = 0;<br>
-  struct termios term;<br>
+  struct termios term = { 0 };<br>
<br>
   result = tcgetattr(fildes, &term);<br>
<br>
   return result;<br>
-}<br>
\ No newline at end of file<br>
+}<br>
diff --git a/testsuites/psxtests/psxhdrs/termios/tcsetattr.c b/testsuites/psxtests/psxhdrs/termios/tcsetattr.c<br>
index e2bd6980a9..da0e0ea62d 100644<br>
--- a/testsuites/psxtests/psxhdrs/termios/tcsetattr.c<br>
+++ b/testsuites/psxtests/psxhdrs/termios/tcsetattr.c<br>
@@ -43,9 +43,9 @@ int test( void )<br>
   int result;<br>
   int fildes = 0;<br>
   int optional_actions = 0;<br>
-  struct termios term;<br>
+  struct termios term = { 0 };<br>
<br>
   result = tcsetattr(fildes, optional_actions, &term);<br>
<br>
   return result;<br>
-}<br>
\ No newline at end of file<br>
+}<br>
diff --git a/testsuites/psxtests/psxhdrs/time/asctime.c b/testsuites/psxtests/psxhdrs/time/asctime.c<br>
index c02a543d6b..400dbf5258 100644<br>
--- a/testsuites/psxtests/psxhdrs/time/asctime.c<br>
+++ b/testsuites/psxtests/psxhdrs/time/asctime.c<br>
@@ -42,7 +42,7 @@ int test( void );<br>
 int test( void )<br>
 {<br>
   char      *buffer;<br>
-  struct tm  timestruct;<br>
+  struct tm  timestruct = { 0 };<br>
<br>
   buffer = asctime( &timestruct );<br>
<br>
diff --git a/testsuites/psxtests/psxhdrs/time/asctime_r.c b/testsuites/psxtests/psxhdrs/time/asctime_r.c<br>
index 231ea14dfb..c0a22b7d6b 100644<br>
--- a/testsuites/psxtests/psxhdrs/time/asctime_r.c<br>
+++ b/testsuites/psxtests/psxhdrs/time/asctime_r.c<br>
@@ -42,7 +42,7 @@ int test( void );<br>
 int test( void )<br>
 {<br>
   char      *buffer_pointer;<br>
-  struct tm  timestruct;<br>
+  struct tm  timestruct = { 0 };<br>
   char       buffer[ 80 ];<br>
<br>
   buffer_pointer = asctime_r( &timestruct, buffer );<br>
diff --git a/testsuites/psxtests/psxhdrs/time/clock_settime.c b/testsuites/psxtests/psxhdrs/time/clock_settime.c<br>
index 8a4d88c37f..8584e1c61f 100644<br>
--- a/testsuites/psxtests/psxhdrs/time/clock_settime.c<br>
+++ b/testsuites/psxtests/psxhdrs/time/clock_settime.c<br>
@@ -46,7 +46,7 @@ int test( void );<br>
 int test( void )<br>
 {<br>
   clockid_t        clock_id = 0;<br>
-  struct timespec  tp;<br>
+  struct timespec  tp = { 0 };<br>
   int              result;<br>
<br>
   result = clock_settime( clock_id, &tp );<br>
diff --git a/testsuites/psxtests/psxhdrs/time/ctime.c b/testsuites/psxtests/psxhdrs/time/ctime.c<br>
index f778e726a9..67dddf21ca 100644<br>
--- a/testsuites/psxtests/psxhdrs/time/ctime.c<br>
+++ b/testsuites/psxtests/psxhdrs/time/ctime.c<br>
@@ -42,7 +42,7 @@ int test( void );<br>
 int test( void )<br>
 {<br>
   char     *buffer;<br>
-  time_t    time;<br>
+  time_t    time = { 0 };<br>
<br>
   buffer = ctime( &time );<br>
<br>
diff --git a/testsuites/psxtests/psxhdrs/time/ctime_r.c b/testsuites/psxtests/psxhdrs/time/ctime_r.c<br>
index b973a504ae..30f1285d0a 100644<br>
--- a/testsuites/psxtests/psxhdrs/time/ctime_r.c<br>
+++ b/testsuites/psxtests/psxhdrs/time/ctime_r.c<br>
@@ -43,7 +43,7 @@ int test( void )<br>
 {<br>
   char     *buffer_pointer;<br>
   char      buffer[ 80 ];<br>
-  time_t    time;<br>
+  time_t    time = { 0 };<br>
<br>
   buffer_pointer = ctime_r( &time, buffer );<br>
<br>
diff --git a/testsuites/psxtests/psxhdrs/time/gmtime.c b/testsuites/psxtests/psxhdrs/time/gmtime.c<br>
index 7118162c84..d7c08726ad 100644<br>
--- a/testsuites/psxtests/psxhdrs/time/gmtime.c<br>
+++ b/testsuites/psxtests/psxhdrs/time/gmtime.c<br>
@@ -41,7 +41,7 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  time_t     time;<br>
+  time_t     time = { 0 };<br>
   struct tm *timestruct;<br>
<br>
   timestruct = gmtime( &time );<br>
diff --git a/testsuites/psxtests/psxhdrs/time/gmtime_r.c b/testsuites/psxtests/psxhdrs/time/gmtime_r.c<br>
index 58f6a3212a..128e5107e0 100644<br>
--- a/testsuites/psxtests/psxhdrs/time/gmtime_r.c<br>
+++ b/testsuites/psxtests/psxhdrs/time/gmtime_r.c<br>
@@ -41,7 +41,7 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  time_t     time;<br>
+  time_t     time = { 0 };<br>
   struct tm *timestruct_pointer;<br>
   struct tm  timestruct;<br>
<br>
diff --git a/testsuites/psxtests/psxhdrs/time/localtime.c b/testsuites/psxtests/psxhdrs/time/localtime.c<br>
index 674d8e43c2..7f1b4e481d 100644<br>
--- a/testsuites/psxtests/psxhdrs/time/localtime.c<br>
+++ b/testsuites/psxtests/psxhdrs/time/localtime.c<br>
@@ -41,7 +41,7 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  time_t     time;<br>
+  time_t     time = { 0 };<br>
   struct tm *timestruct;<br>
<br>
   timestruct = localtime( &time );<br>
diff --git a/testsuites/psxtests/psxhdrs/time/localtime_r.c b/testsuites/psxtests/psxhdrs/time/localtime_r.c<br>
index be85af36c5..10338db9fe 100644<br>
--- a/testsuites/psxtests/psxhdrs/time/localtime_r.c<br>
+++ b/testsuites/psxtests/psxhdrs/time/localtime_r.c<br>
@@ -41,7 +41,7 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  time_t     time;<br>
+  time_t     time = { 0 };<br>
   struct tm *timestruct_pointer;<br>
   struct tm  timestruct;<br>
<br>
diff --git a/testsuites/psxtests/psxhdrs/time/strftime.c b/testsuites/psxtests/psxhdrs/time/strftime.c<br>
index ee27e7b8d4..6b75cdac1e 100644<br>
--- a/testsuites/psxtests/psxhdrs/time/strftime.c<br>
+++ b/testsuites/psxtests/psxhdrs/time/strftime.c<br>
@@ -44,7 +44,7 @@ int test( void )<br>
   size_t    length;<br>
   size_t    max_length;<br>
   char      buffer[ 80 ];<br>
-  struct tm timestruct;<br>
+  struct tm timestruct = { 0 };<br>
<br>
   max_length = sizeof( buffer );<br>
<br>
diff --git a/testsuites/psxtests/psxhdrs/unistd/setgroups.c b/testsuites/psxtests/psxhdrs/unistd/setgroups.c<br>
index b40547a5e8..a29cb05978 100644<br>
--- a/testsuites/psxtests/psxhdrs/unistd/setgroups.c<br>
+++ b/testsuites/psxtests/psxhdrs/unistd/setgroups.c<br>
@@ -42,7 +42,7 @@ int test( void );<br>
<br>
 int test( void )<br>
 {<br>
-  gid_t grouplist[ 20 ];<br>
+  gid_t grouplist[ 20 ] = { 0 } ;<br>
   int   gidsetsize;<br>
   int   result;<br>
<br>
diff --git a/testsuites/psxtests/psxhdrs/utime/utime.c b/testsuites/psxtests/psxhdrs/utime/utime.c<br>
index 6236a84637..db619baecc 100644<br>
--- a/testsuites/psxtests/psxhdrs/utime/utime.c<br>
+++ b/testsuites/psxtests/psxhdrs/utime/utime.c<br>
@@ -43,7 +43,7 @@ int test( void );<br>
 int test( void )<br>
 {<br>
   int result;<br>
-  const struct utimbuf buff;<br>
+  const struct utimbuf buff = { 0 };<br>
   const char *path = "/tmp/myfile";<br>
<br>
   result = utime(path, &buff);<br>
diff --git a/testsuites/psxtests/psxhdrs/wchar/mbsinit.c b/testsuites/psxtests/psxhdrs/wchar/mbsinit.c<br>
index 21a39ee2ce..5432520f86 100644<br>
--- a/testsuites/psxtests/psxhdrs/wchar/mbsinit.c<br>
+++ b/testsuites/psxtests/psxhdrs/wchar/mbsinit.c<br>
@@ -5,7 +5,7 @@<br>
<br>
 /*<br>
  * SPDX-License-Identifier: BSD-2-Clause<br>
- * <br>
+ *<br>
  * Copyright (C) 2018, Zenon<br>
  *<br>
  * Redistribution and use in source and binary forms, with or without<br>
@@ -40,7 +40,7 @@ int test(void);<br>
<br>
 int test(void)<br>
 {<br>
-  const mbstate_t state;<br>
+  const mbstate_t state = { 0 };<br>
<br>
   return mbsinit(&state);<br>
 }<br>
diff --git a/testsuites/psxtests/psxkey07/init.c b/testsuites/psxtests/psxkey07/init.c<br>
index d9696a0e28..593df739db 100644<br>
--- a/testsuites/psxtests/psxkey07/init.c<br>
+++ b/testsuites/psxtests/psxkey07/init.c<br>
@@ -55,6 +55,7 @@ rtems_task Test_Thread(rtems_task_argument argument)<br>
   int *value_p, *value_p2;<br>
<br>
   value_p = malloc( sizeof( int ) );<br>
+  rtems_test_assert(value_p != NULL);<br>
   sc = pthread_setspecific( Key, value_p );<br>
   rtems_test_assert( !sc );<br>
<br>
@@ -119,7 +120,7 @@ rtems_task Init(rtems_task_argument argument)<br>
     pthread_mutex_lock( &mutex1 );<br>
<br>
     rc = rtems_task_create(<br>
-      rtems_build_name( 'T', 'E', 'S', 'T' ), <br>
+      rtems_build_name( 'T', 'E', 'S', 'T' ),<br>
       1,<br>
       RTEMS_MINIMUM_STACK_SIZE,<br>
       RTEMS_DEFAULT_MODES,<br>
diff --git a/testsuites/psxtests/psxkey08/init.c b/testsuites/psxtests/psxkey08/init.c<br>
index 2bd00bc53d..ed0b6e8554 100644<br>
--- a/testsuites/psxtests/psxkey08/init.c<br>
+++ b/testsuites/psxtests/psxkey08/init.c<br>
@@ -51,7 +51,7 @@ static rtems_name name1, name2;<br>
<br>
 static rtems_task test_task(rtems_task_argument arg)<br>
 {<br>
-  rtems_status_code sc;<br>
+  rtems_status_code sc = 0;<br>
   const void *value_p;<br>
   const void *value_p2;<br>
<br>
diff --git a/testsuites/psxtests/psxmsgq01/init.c b/testsuites/psxtests/psxmsgq01/init.c<br>
index 3c77beb038..c6b3d92464 100644<br>
--- a/testsuites/psxtests/psxmsgq01/init.c<br>
+++ b/testsuites/psxtests/psxmsgq01/init.c<br>
@@ -1133,7 +1133,7 @@ void verify_with_threads(void)<br>
<br>
 void validate_mq_setattr(void)<br>
 {<br>
-  struct mq_attr  attr;<br>
+  struct mq_attr  attr = { 0 };<br>
   struct mq_attr  save_attr[ NUMBER_OF_TEST_QUEUES ];<br>
   int             status;<br>
   int            i;<br>
diff --git a/testsuites/sptests/sp68/init.c b/testsuites/sptests/sp68/init.c<br>
index 5443dfbb5e..8e0bd1c8c8 100644<br>
--- a/testsuites/sptests/sp68/init.c<br>
+++ b/testsuites/sptests/sp68/init.c<br>
@@ -166,7 +166,7 @@ static void obtain_callback(rtems_id timer_id, void *arg)<br>
 static void release_callback(rtems_id timer_id, void *arg)<br>
 {<br>
   rtems_status_code sc = RTEMS_SUCCESSFUL;<br>
-  char buf [1];<br>
+  char buf [1] = { 0 };<br>
   size_t size = sizeof(buf);<br>
   uint32_t released = 0;<br>
<br>
diff --git a/testsuites/sptests/spfatal32/init.c b/testsuites/sptests/spfatal32/init.c<br>
index 78dcfeb669..1a1e0bee79 100644<br>
--- a/testsuites/sptests/spfatal32/init.c<br>
+++ b/testsuites/sptests/spfatal32/init.c<br>
@@ -39,6 +39,11 @@<br>
 #define FATAL_ERROR_EXPECTED_SOURCE RTEMS_FATAL_SOURCE_INVALID_HEAP_FREE<br>
 #define FATAL_ERROR_EXPECTED_ERROR  1<br>
<br>
+/*<br>
+ * Disable for the specific test case.<br>
+ */<br>
+#pragma GCC diagnostic ignored "-Wfree-nonheap-object"<br>
+<br>
 static void force_error(void)<br>
 {<br>
   uintptr_t invalid = 1;<br>
-- <br>
2.24.1<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>