Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Dec 2024 07:39:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 283486] x11/libX11: Failed to build using GCC 13 due to '-Werror=maybe-uninitialized'
Message-ID:  <bug-283486-7141-UcaVqlgEnk@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-283486-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-283486-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-x11 (Nobody)
<x11@FreeBSD.org> for maintainer-feedback:
Bug 283486: x11/libX11: Failed to build using GCC 13 due to
'-Werror=3Dmaybe-uninitialized'
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283486



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

../include/X11/Xlibint.h:680:34: error: 'nbytes' may be used uninitialized
[-Werror=3Dmaybe-uninitialized]
  680 | #define _XRead16(dpy, data, len) _XRead((dpy), (char *)(data), (len=
))
      | 				 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Font.c:283:9: note: in expansion of macro '_XRead16'
  283 | 	_XRead16 (dpy, (char *)fs->per_char, nbytes);
      | 	^~~~~~~~
Font.c:190:19: note: 'nbytes' was declared here
  190 |     unsigned long nbytes;
      | 		  ^~~~~~



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-283486-7141-UcaVqlgEnk>