]> git.eshelyaron.com Git - emacs.git/commitdiff
Pacify gcc -Wmaybe-uninitialized without X11-XCB
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Nov 2018 18:01:40 +0000 (10:01 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Nov 2018 18:03:32 +0000 (10:03 -0800)
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

index f8ea787e8df7891b13129132b2c9921a8e8a875b..3a7e31e7129b4a8698ed25bbf781ece1d6883b9f 100644 (file)
@@ -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;