From 5f2ff254eb4949a28a844a627b1ad1e10ec76d0c Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 24 Mar 2012 09:04:34 -0500 Subject: [PATCH] Cleaned up compile warnings. --- sbr/getansreadline.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sbr/getansreadline.c b/sbr/getansreadline.c index 0daaa49..7c862f2 100644 --- a/sbr/getansreadline.c +++ b/sbr/getansreadline.c @@ -24,9 +24,9 @@ static char **nmh_completion(const char *, int, int); static void initialize_readline(void); static char ansbuf[BUFSIZ]; +#if 0 static sigjmp_buf sigenv; -#if 0 /* * static prototypes */ @@ -175,6 +175,8 @@ initialize_readline(void) static char ** nmh_completion(const char *text, int start, int end) { + NMH_UNUSED (end); + char **matches; matches = (char **) NULL; @@ -197,7 +199,7 @@ nmh_command_generator(const char *text, int state) len = strlen(text); } - while (name = rl_cmds[list_index].sw) { + while ((name = rl_cmds[list_index].sw)) { list_index++; strncpy(buf, name, sizeof(buf)); buf[sizeof(buf) - 1] = '\0'; -- 1.7.10.4