diff options
| author | Eli Zaretskii | 2017-09-09 18:50:50 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-09-09 18:50:50 +0300 |
| commit | 2b84c1666274edcb6b810649fa0d6fc09e9e7a66 (patch) | |
| tree | 77c5d68dfc12306eb39b9328a3960eba411562cf /lib-src | |
| parent | e91da7f8f2523057fa93ea4aace36863315abb5b (diff) | |
| download | emacs-2b84c1666274edcb6b810649fa0d6fc09e9e7a66.tar.gz emacs-2b84c1666274edcb6b810649fa0d6fc09e9e7a66.zip | |
Fix compilation warnings in MinGW64 build using GCC 7
Reported by Richard Copley <rcopley@gmail.com>.
* src/w32heap.c (init_heap): Declare enable_lfh only for
mingw.org's MinGW build.
* src/w32console.c (w32con_write_glyphs):
* src/unexw32.c (get_section_info, COPY_CHUNK, unexec): Fix some
mismatches of data type vs format spec.
* src/w32fns.c (compute_tip_xy):
* src/w32proc.c (stop_timer_thread):
* src/w32notify.c (remove_watch):
* src/eval.c (internal_lisp_condition_case):
* src/editfns.c (Ftranslate_region_internal):
* src/data.c (Fmake_variable_buffer_local, cons_to_unsigned)
(cons_to_signed):
* src/buffer.c (fix_overlays_before): Initialize variables to
avoid compiler warnings.
* lib-src/etags.c (TeX_commands, process_file_name): Initialize
variables to avoid compilation warnings.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index 5e05c19c624..724cce63955 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -1528,7 +1528,7 @@ process_file_name (char *file, language *lang) | |||
| 1528 | fdesc *fdp; | 1528 | fdesc *fdp; |
| 1529 | compressor *compr; | 1529 | compressor *compr; |
| 1530 | char *compressed_name, *uncompressed_name; | 1530 | char *compressed_name, *uncompressed_name; |
| 1531 | char *ext, *real_name, *tmp_name; | 1531 | char *ext, *real_name = NULL, *tmp_name; |
| 1532 | int retval; | 1532 | int retval; |
| 1533 | 1533 | ||
| 1534 | canonicalize_filename (file); | 1534 | canonicalize_filename (file); |
| @@ -5594,7 +5594,7 @@ TeX_commands (FILE *inf) | |||
| 5594 | linebuffer *key; | 5594 | linebuffer *key; |
| 5595 | 5595 | ||
| 5596 | char TEX_esc = '\0'; | 5596 | char TEX_esc = '\0'; |
| 5597 | char TEX_opgrp, TEX_clgrp; | 5597 | char TEX_opgrp = 0, TEX_clgrp = 0; |
| 5598 | 5598 | ||
| 5599 | /* Initialize token table once from environment. */ | 5599 | /* Initialize token table once from environment. */ |
| 5600 | if (TEX_toktab == NULL) | 5600 | if (TEX_toktab == NULL) |