GNU bug report logs -
#57208
29.0.50; Uninitialized compilation warnings in xterm.c
Previous Next
Reported by: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Date: Sun, 14 Aug 2022 15:58:02 UTC
Severity: minor
Tags: moreinfo, patch
Found in version 29.0.50
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 57208 <at> debbugs.gnu.org (full text, mbox):
"Basil L. Contovounesios" <contovob <at> tcd.ie> writes:
> Severity: minor
> Tags: patch
>
> Compiling with GCC 12 and -Og, I get the following -Wmaybe-uninitialized
> warnings:
>
> xterm.c: In function ‘x_dnd_free_toplevels’:
> xterm.c:2918:17: warning: ‘dpy’ may be used uninitialized [-Wmaybe-uninitialized]
> 2918 | dpyinfo = x_display_info_for_display (dpy);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> xterm.c:2853:12: note: ‘dpy’ was declared here
> 2853 | Display *dpy;
> | ^~~
>
> xterm.c: In function ‘xm_setup_dnd_targets’:
> xterm.c:2284:21: warning: ‘recs’ may be used uninitialized [-Wmaybe-uninitialized]
> 2284 | recs[header.target_list_count - 1]->targets[i] = targets_sorted[i];
> | ^
> xterm.c:2112:26: note: ‘recs’ was declared here
> 2112 | xm_targets_table_rec **recs;
> | ^~~~
>
> They're bogus, right? Is it okay to silence them as follows?
Yes, those are all bogus. I installed something different to pacify
them on master.
Thanks.
This bug report was last modified 2 years and 330 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.