From 119f64dbf65b14c54cd26e64386ccb2e2a7091fc Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Sun, 15 Dec 2013 18:40:44 +0100 Subject: [PATCH] src/w32*.c: Silence compiler warnings. * w32fns.c (Fw32_shell_execute): Remove unused local variable. (Fx_file_dialog): Add parentheses around && to silence warning. * w32term.c (construct_drag_n_drop): Remove unused local variable. --- src/ChangeLog | 7 +++++++ src/w32fns.c | 6 ++---- src/w32term.c | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 90b6525a55..1b19a309c0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2013-12-15 Juanma Barranquero + + * w32fns.c (Fw32_shell_execute): Remove unused local variable. + (Fx_file_dialog): Add parentheses around && to silence warning. + + * w32term.c (construct_drag_n_drop): Remove unused local variable. + 2013-12-15 Eli Zaretskii * xdisp.c (extend_face_to_end_of_line): Extend background of diff --git a/src/w32fns.c b/src/w32fns.c index e5d899d8a1..8576d478e4 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -6667,9 +6667,9 @@ Otherwise, if ONLY-DIR-P is non-nil, the user can only select directories. */) /* Strip the dummy filename off the end of the string if we added it to select a directory. */ - if (use_unicode && file_details_w->nFilterIndex == 2 + if ((use_unicode && file_details_w->nFilterIndex == 2) #ifndef NTGUI_UNICODE - || !use_unicode && file_details_a->nFilterIndex == 2 + || (!use_unicode && file_details_a->nFilterIndex == 2) #endif ) filename = Ffile_name_directory (filename); @@ -6965,8 +6965,6 @@ an integer representing a ShowWindow flag: } if (STRINGP (parameters)) { - int len; - parameters = ENCODE_SYSTEM (parameters); params_a = SSDATA (parameters); } diff --git a/src/w32term.c b/src/w32term.c index 6537b2205f..e3cdc1d083 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -3137,7 +3137,7 @@ construct_drag_n_drop (struct input_event *result, W32Msg *msg, struct frame *f) char name_a[MAX_PATH]; char file[MAX_UTF8_PATH]; #endif - int i, len; + int i; result->kind = DRAG_N_DROP_EVENT; result->code = 0; -- 2.20.1