diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2011-03-23 17:25:38 +0100 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2011-03-23 17:25:38 +0100 |
commit | 9c88f339493465e8e200b21885f2ac886b299169 (patch) | |
tree | 2efb1ad55d59be8f165c5bda002d8303014c489f /nt | |
parent | def71b5e5b9f78a112e52201881aea631b7ebcde (diff) | |
download | emacs-9c88f339493465e8e200b21885f2ac886b299169.tar.gz |
w32: Fix some warnings reported by -Wall -Wextra.
* lib-src/ntlib.c: Include <ctype.h>.
* nt/cmdproxy.c: Include <ctype.h>.
(make_absolute): Remove unused variable `i'.
* src/w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'.
(w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer.
(Fx_close_connection): Remove unused variable `i'.
* src/w32font.c (w32font_draw): Return number of glyphs.
(w32font_open_internal): Remove unused variable `i'.
(w32font_driver): Add missing initializer.
* src/w32menu.c (utf8to16): Remove unused variable `utf16'.
(fill_in_menu): Remove unused variable `items_added'.
* src/w32term.c (last_mouse_press_frame): Remove static global variable.
(w32_clip_to_row): Remove unused variable `f'.
(x_delete_terminal): Remove unused variable `i'.
* src/w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'.
(NOTHING): Remove unused static global variable.
(uniscribe_check_otf): Remove unused variable `table'.
(uniscribe_font_driver): Add missing initializers.
Diffstat (limited to 'nt')
-rw-r--r-- | nt/ChangeLog | 5 | ||||
-rw-r--r-- | nt/cmdproxy.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index e55fc52a487..657b4c7a10f 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,3 +1,8 @@ +2011-03-23 Juanma Barranquero <lekktu@gmail.com> + + * cmdproxy.c: Include <ctype.h>. + (make_absolute): Remove unused variable `i'. + 2011-02-27 Eli Zaretskii <eliz@gnu.org> * inc/unistd.h (readlink, symlink): Declare prototypes. diff --git a/nt/cmdproxy.c b/nt/cmdproxy.c index 9a98e1e5034..b9572570c5f 100644 --- a/nt/cmdproxy.c +++ b/nt/cmdproxy.c @@ -33,6 +33,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #include <malloc.h> /* alloca */ #include <stdlib.h> /* getenv */ #include <string.h> /* strlen */ +#include <ctype.h> /* isspace, isalpha */ /* We don't want to include stdio.h because we are already duplicating lots of it here */ @@ -251,7 +252,6 @@ make_absolute (const char *prog) char curdir[MAX_PATH]; char *p, *path; const char *fname; - int i; /* At least partial absolute path specified; search there. */ if ((isalpha (prog[0]) && prog[1] == ':') || |