aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
authorEli Zaretskii2017-09-09 18:50:50 +0300
committerEli Zaretskii2017-09-09 18:50:50 +0300
commit2b84c1666274edcb6b810649fa0d6fc09e9e7a66 (patch)
tree77c5d68dfc12306eb39b9328a3960eba411562cf /src/editfns.c
parente91da7f8f2523057fa93ea4aace36863315abb5b (diff)
downloademacs-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/editfns.c')
-rw-r--r--src/editfns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/editfns.c b/src/editfns.c
index d599fcfec80..95f35549e4e 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -3613,7 +3613,7 @@ It returns the number of characters changed. */)
3613 for (; pos < end_pos; ) 3613 for (; pos < end_pos; )
3614 { 3614 {
3615 register unsigned char *p = BYTE_POS_ADDR (pos_byte); 3615 register unsigned char *p = BYTE_POS_ADDR (pos_byte);
3616 unsigned char *str, buf[MAX_MULTIBYTE_LENGTH]; 3616 unsigned char *str = tt, buf[MAX_MULTIBYTE_LENGTH];
3617 int len, str_len; 3617 int len, str_len;
3618 int oc; 3618 int oc;
3619 Lisp_Object val; 3619 Lisp_Object val;