[Bug 283486] x11/libX11: Failed to build using GCC 13 due to '-Werror=maybe-uninitialized'
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 22 Dec 2024 07:39:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283486
Bug ID: 283486
Summary: x11/libX11: Failed to build using GCC 13 due to
'-Werror=maybe-uninitialized'
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: x11@FreeBSD.org
Reporter: msl0000023508@gmail.com
Assignee: x11@FreeBSD.org
Flags: maintainer-feedback?(x11@FreeBSD.org)
Attachment #256036 text/plain
mime type:
Created attachment 256036
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=256036&action=edit
x11/libX11/files/patch-src-Font.c
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;
| ^~~~~~
--
You are receiving this mail because:
You are the assignee for the bug.