aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32proc.c
diff options
context:
space:
mode:
authorJuanma Barranquero2014-03-26 11:21:55 +0100
committerJuanma Barranquero2014-03-26 11:21:55 +0100
commit5af73b0fe8975eeb47fb270819b4143c18d71caa (patch)
tree94bd8d6b4a3737b0994bd3b9bfd41796af7247a0 /src/w32proc.c
parentc1e6bc0a37980cdedb8bc0454f2b21008fbee0f7 (diff)
downloademacs-5af73b0fe8975eeb47fb270819b4143c18d71caa.tar.gz
emacs-5af73b0fe8975eeb47fb270819b4143c18d71caa.zip
src/*.c: Silence a few warnings about unused vars and functions.
* src/image.c (x_bitmap_height, x_bitmap_width) [HAVE_X_WINDOWS]: * src/sysdep.c (reset_sigio) [!DOS_NT]: Declare conditionally. * src/keyboard.c (read_decoded_event_from_main_queue): #ifdef out variables on Windows. * src/w32.c (unsetenv): Remove unused var `retval'. (emacs_gnutls_pull): Remove unused vars `fdset' and `timeout'. * src/w32fns.c (Ffile_system_info): Use parenthesis in and/or expression. * src/w32notify.c (watch_worker): Remove unnecesary var sleep_result. (start_watching): Remove unused var `thr'. * src/w32proc.c (sys_spawnve): Comment out unused vars `first', `last'. (find_child_console): Remove unnecesary var `thread_id'. * src/w32term.c (w32_read_socket): Comment out unused vars `row', `columns'. (x_focus_frame): #ifdef 0 unused variable `dpyinfo'.
Diffstat (limited to 'src/w32proc.c')
-rw-r--r--src/w32proc.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index 96f11657892..426a656f566 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -1772,12 +1772,12 @@ sys_spawnve (int mode, char *cmdname, char **argv, char **envp)
1772 if (need_quotes) 1772 if (need_quotes)
1773 { 1773 {
1774 int escape_char_run = 0; 1774 int escape_char_run = 0;
1775 char * first; 1775 /* char * first; */
1776 char * last; 1776 /* char * last; */
1777 1777
1778 p = *targ; 1778 p = *targ;
1779 first = p; 1779 /* first = p; */
1780 last = p + strlen (p) - 1; 1780 /* last = p + strlen (p) - 1; */
1781 *parg++ = '"'; 1781 *parg++ = '"';
1782#if 0 1782#if 0
1783 /* This version does not escape quotes if they occur at the 1783 /* This version does not escape quotes if they occur at the
@@ -2249,10 +2249,9 @@ static BOOL CALLBACK
2249find_child_console (HWND hwnd, LPARAM arg) 2249find_child_console (HWND hwnd, LPARAM arg)
2250{ 2250{
2251 child_process * cp = (child_process *) arg; 2251 child_process * cp = (child_process *) arg;
2252 DWORD thread_id;
2253 DWORD process_id; 2252 DWORD process_id;
2254 2253
2255 thread_id = GetWindowThreadProcessId (hwnd, &process_id); 2254 GetWindowThreadProcessId (hwnd, &process_id);
2256 if (process_id == cp->procinfo.dwProcessId) 2255 if (process_id == cp->procinfo.dwProcessId)
2257 { 2256 {
2258 char window_class[32]; 2257 char window_class[32];