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

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
Bugzilla Automation <[email protected]> has asked freebsd-x11 (Nobody)
<[email protected]> for maintainer-feedback:
Bug 283486: x11/libX11: Failed to build using GCC 13 due to
'-Werror=maybe-uninitialized'
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283486



--- 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=maybe-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;
      | 		  ^~~~~~
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.