From b87c874aa1016939ccbee4cd3bd1384726cb2220 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 11 Nov 2018 10:01:40 -0800 Subject: [PATCH] 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. --- src/xterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5