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 /src/w32console.c | |
| 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 'src/w32console.c')
| -rw-r--r-- | src/w32console.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32console.c b/src/w32console.c index 8df6379d407..a4c089fa964 100644 --- a/src/w32console.c +++ b/src/w32console.c | |||
| @@ -333,7 +333,7 @@ w32con_write_glyphs (struct frame *f, register struct glyph *string, | |||
| 333 | coding->produced, cursor_coords, | 333 | coding->produced, cursor_coords, |
| 334 | &r)) | 334 | &r)) |
| 335 | { | 335 | { |
| 336 | printf ("Failed writing console attributes: %d\n", | 336 | printf ("Failed writing console attributes: %lu\n", |
| 337 | GetLastError ()); | 337 | GetLastError ()); |
| 338 | fflush (stdout); | 338 | fflush (stdout); |
| 339 | } | 339 | } |
| @@ -343,7 +343,7 @@ w32con_write_glyphs (struct frame *f, register struct glyph *string, | |||
| 343 | coding->produced, cursor_coords, | 343 | coding->produced, cursor_coords, |
| 344 | &r)) | 344 | &r)) |
| 345 | { | 345 | { |
| 346 | printf ("Failed writing console characters: %d\n", | 346 | printf ("Failed writing console characters: %lu\n", |
| 347 | GetLastError ()); | 347 | GetLastError ()); |
| 348 | fflush (stdout); | 348 | fflush (stdout); |
| 349 | } | 349 | } |