diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2014-03-26 11:21:55 +0100 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2014-03-26 11:21:55 +0100 |
commit | 5af73b0fe8975eeb47fb270819b4143c18d71caa (patch) | |
tree | 94bd8d6b4a3737b0994bd3b9bfd41796af7247a0 /src/w32notify.c | |
parent | c1e6bc0a37980cdedb8bc0454f2b21008fbee0f7 (diff) | |
download | emacs-5af73b0fe8975eeb47fb270819b4143c18d71caa.tar.gz |
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/w32notify.c')
-rw-r--r-- | src/w32notify.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/w32notify.c b/src/w32notify.c index 7155f16f3b0..86412b8a974 100644 --- a/src/w32notify.c +++ b/src/w32notify.c @@ -247,7 +247,6 @@ watch_worker (LPVOID arg) do { BOOL status; - DWORD sleep_result; DWORD bytes_ret = 0; if (dirwatch->dir) @@ -275,7 +274,7 @@ watch_worker (LPVOID arg) /* Sleep indefinitely until awoken by the I/O completion, which could be either a change notification or a cancellation of the watch. */ - sleep_result = SleepEx (INFINITE, TRUE); + SleepEx (INFINITE, TRUE); } while (!dirwatch->terminate); return 0; @@ -287,7 +286,6 @@ static struct notification * start_watching (const char *file, HANDLE hdir, BOOL subdirs, DWORD flags) { struct notification *dirwatch = xzalloc (sizeof (struct notification)); - HANDLE thr; dirwatch->signature = DIRWATCH_SIGNATURE; dirwatch->buf = xmalloc (16384); |