diff options
author | Eli Zaretskii <eliz@gnu.org> | 2017-09-09 18:50:50 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2017-09-09 18:50:50 +0300 |
commit | 2b84c1666274edcb6b810649fa0d6fc09e9e7a66 (patch) | |
tree | 77c5d68dfc12306eb39b9328a3960eba411562cf /src/unexw32.c | |
parent | e91da7f8f2523057fa93ea4aace36863315abb5b (diff) | |
download | emacs-2b84c1666274edcb6b810649fa0d6fc09e9e7a66.tar.gz |
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/unexw32.c')
-rw-r--r-- | src/unexw32.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/unexw32.c b/src/unexw32.c index 904447c3ec9..5259b2a52b0 100644 --- a/src/unexw32.c +++ b/src/unexw32.c @@ -357,7 +357,7 @@ get_section_info (file_data *p_infile) /* Check the NT header signature ... */ if (nt_header->Signature != IMAGE_NT_SIGNATURE) { - printf ("Invalid IMAGE_NT_SIGNATURE 0x%x in %s...bailing.\n", + printf ("Invalid IMAGE_NT_SIGNATURE 0x%lx in %s...bailing.\n", nt_header->Signature, p_infile->name); exit (1); } @@ -496,7 +496,7 @@ copy_executable_and_dump_data (file_data *p_infile, printf ("%s\n", (message)); \ printf ("\t0x%08x Offset in input file.\n", s - p_infile->file_base); \ printf ("\t0x%08x Offset in output file.\n", dst - p_outfile->file_base); \ - printf ("\t0x%08x Size in bytes.\n", count); \ + printf ("\t0x%08lx Size in bytes.\n", count); \ } \ memcpy (dst, s, count); \ dst += count; \ @@ -739,7 +739,7 @@ unexec (const char *new_name, const char *old_name) /* Open the undumped executable file. */ if (!open_input_file (&in_file, in_filename)) { - printf ("Failed to open %s (%d)...bailing.\n", + printf ("Failed to open %s (%lu)...bailing.\n", in_filename, GetLastError ()); exit (1); } @@ -754,7 +754,7 @@ unexec (const char *new_name, const char *old_name) extra_bss_size_static; if (!open_output_file (&out_file, out_filename, size)) { - printf ("Failed to open %s (%d)...bailing.\n", + printf ("Failed to open %s (%lu)...bailing.\n", out_filename, GetLastError ()); exit (1); } |