diff options
| author | Paul Eggert | 2018-08-12 17:25:37 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-08-12 17:25:54 -0700 |
| commit | a1e0868f74f7b2b6b77026734102bd453cf1933b (patch) | |
| tree | 82780ea818ce15827cd7d3669839606f9c54faf0 /src/editfns.c | |
| parent | ca10011898e2ceeded4027413a1488837199ad7a (diff) | |
| download | emacs-a1e0868f74f7b2b6b77026734102bd453cf1933b.tar.gz emacs-a1e0868f74f7b2b6b77026734102bd453cf1933b.zip | |
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.
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/editfns.c b/src/editfns.c index 71eb2a88090..d2281d7e81c 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -174,7 +174,7 @@ tzlookup (Lisp_Object zone, bool settz) | |||
| 174 | else if (plain_integer || (CONSP (zone) && FIXNUMP (XCAR (zone)) | 174 | else if (plain_integer || (CONSP (zone) && FIXNUMP (XCAR (zone)) |
| 175 | && CONSP (XCDR (zone)))) | 175 | && CONSP (XCDR (zone)))) |
| 176 | { | 176 | { |
| 177 | Lisp_Object abbr = Qnil; | 177 | Lisp_Object abbr UNINIT; |
| 178 | if (!plain_integer) | 178 | if (!plain_integer) |
| 179 | { | 179 | { |
| 180 | abbr = XCAR (XCDR (zone)); | 180 | abbr = XCAR (XCDR (zone)); |