From b10bd71987cdeb753c106145d6270a359505359c Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 22 Dec 2016 09:25:58 -0800 Subject: Pacify --enable-gcc-warnings * src/charset.c (load_charset_map): * src/coding.c (decode_coding_object): * src/frame.c (make_frame): * src/window.c (Frecenter): Mark locals with UNINIT to silence false alarms from -Wmaybe-uninitialized. * src/lisp.h (SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD) (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): Check and assume that values are nonnull. This pacifies -Wmaybe-uninitialized in Fmake_variable_buffer_local and Fmake_local_variable. --- src/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/window.c') diff --git a/src/window.c b/src/window.c index c3e693182c6..6cfba084493 100644 --- a/src/window.c +++ b/src/window.c @@ -5683,7 +5683,7 @@ and redisplay normally--don't erase and redraw the frame. */) struct buffer *buf = XBUFFER (w->contents); bool center_p = false; ptrdiff_t charpos, bytepos; - EMACS_INT iarg; + EMACS_INT iarg UNINIT; int this_scroll_margin; if (buf != current_buffer) -- cgit v1.2.1