emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master b87c874 2/2: Pacify gcc -Wmaybe-uninitialized witho


From: Paul Eggert
Subject: [Emacs-diffs] master b87c874 2/2: Pacify gcc -Wmaybe-uninitialized without X11-XCB
Date: Sun, 11 Nov 2018 13:03:37 -0500 (EST)

branch: master
commit b87c874aa1016939ccbee4cd3bd1384726cb2220
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    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 f8ea787..3a7e31e 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]