]> git.eshelyaron.com Git - emacs.git/commit
Pacify gcc -Og -Wuninitialized
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Aug 2018 00:25:37 +0000 (17:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Aug 2018 00:25:54 +0000 (17:25 -0700)
commita1e0868f74f7b2b6b77026734102bd453cf1933b
tree82780ea818ce15827cd7d3669839606f9c54faf0
parentca10011898e2ceeded4027413a1488837199ad7a
Pacify gcc -Og -Wuninitialized

This addresses the -Og uninitialized variable warnings I ran
into on Fedora 28, which uses 8.1.1 20180712 (Red Hat 8.1.1-5).
It also changes some explicit initializations to UNINIT
when the variable does not actually need to be initialized.
* src/process.c (connect_network_socket):
* src/sysdep.c (system_process_attributes):
* src/xfns.c (x_real_pos_and_offsets):
* src/xterm.c (get_current_wm_state) [USE_XCB]:
Add UNINIT.
* src/editfns.c (tzlookup):
* src/fns.c (Fnconc):
* src/font.c (font_parse_fcname):
* src/frame.c (x_set_frame_parameters):
Prefer UNINIT to explicit initialization.
src/editfns.c
src/fns.c
src/font.c
src/frame.c
src/process.c
src/sysdep.c
src/xfns.c
src/xterm.c