From: Paul Eggert Date: Sun, 11 Nov 2018 18:01:40 +0000 (-0800) Subject: Pacify gcc -Wmaybe-uninitialized without X11-XCB X-Git-Tag: emacs-27.0.90~4182 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b87c874aa1016939ccbee4cd3bd1384726cb2220;p=emacs.git Pacify gcc -Wmaybe-uninitialized without X11-XCB I ran into this problem on Ubuntu 18.04.1 LTS. * src/xterm.c (get_current_wm_state) [!USE_XCB]: Mark reply_data as UNINIT here too. --- diff --git a/src/xterm.c b/src/xterm.c index f8ea787e8df..3a7e31e7129 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10644,7 +10644,7 @@ get_current_wm_state (struct frame *f, int rc, actual_format; Atom actual_type; unsigned char *tmp_data = NULL; - Atom *reply_data; + Atom *reply_data UNINIT; #endif *sticky = false;