maintainer-feedback requested: [Bug 283540] x11/libXext: Failed to build using GCC 13 due to '-Werror=maybe-uninitialized'

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 24 Dec 2024 06:20:38 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-x11 (Nobody)
<x11@FreeBSD.org> for maintainer-feedback:
Bug 283540: x11/libXext: Failed to build using GCC 13 due to
'-Werror=maybe-uninitialized'
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283540



--- Description ---
Building with GCC 13.3 (lang/gcc13 13.3.0) fails with:

In function 'StuffToWire',
    inlined from 'XagCreateEmbeddedApplicationGroup' at XAppgroup.c:195:5:
XAppgroup.c:146:18: error: 'stuff.black_pixel' may be used uninitialized
[-Werror=maybe-uninitialized]
  146 | 	*value++ = stuff->black_pixel;
      | 	~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
XAppgroup.c: In function 'XagCreateEmbeddedApplicationGroup':
XAppgroup.c:171:21: note: 'stuff.black_pixel' was declared here
  171 |     struct xagstuff stuff;
      | 		    ^~~~~
In function 'StuffToWire',
    inlined from 'XagCreateEmbeddedApplicationGroup' at XAppgroup.c:195:5:
XAppgroup.c:149:18: error: 'stuff.white_pixel' may be used uninitialized
[-Werror=maybe-uninitialized]
  149 | 	*value++ = stuff->white_pixel;
      | 	~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
XAppgroup.c: In function 'XagCreateEmbeddedApplicationGroup':
XAppgroup.c:171:21: note: 'stuff.white_pixel' was declared here
  171 |     struct xagstuff stuff;
      | 		    ^~~~~