From 5af73b0fe8975eeb47fb270819b4143c18d71caa Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Wed, 26 Mar 2014 11:21:55 +0100 Subject: 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'. --- src/w32.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/w32.c') diff --git a/src/w32.c b/src/w32.c index 1ffb6ec171f..95092daa83a 100644 --- a/src/w32.c +++ b/src/w32.c @@ -2413,7 +2413,6 @@ unsetenv (const char *name) { char *var; size_t name_len; - int retval; if (name == NULL || *name == '\0' || strchr (name, '=') != NULL) { @@ -9261,8 +9260,6 @@ ssize_t emacs_gnutls_pull (gnutls_transport_ptr_t p, void* buf, size_t sz) { int n, err; - SELECT_TYPE fdset; - struct timespec timeout; struct Lisp_Process *process = (struct Lisp_Process *)p; int fd = process->infd; -- cgit v1.2.1