diff options
author | michal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-16 07:38:40 +0000 |
---|---|---|
committer | michal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-16 07:38:40 +0000 |
commit | 4e13d36561868d78e9e5ff9b24aba67d418c67ed (patch) | |
tree | 07808bdd94888f12e0e1b1a6f52777f213d50b91 /ext/readline/readline.c | |
parent | 9df466b287471d386f962ea41cf49c40f2059c8b (diff) | |
download | ruby-4e13d36561868d78e9e5ff9b24aba67d418c67ed.tar.gz |
-Wall cleanups (removed unused vars, no 'code has no effect' warnings)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline/readline.c')
-rw-r--r-- | ext/readline/readline.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 2f460ea3e0..fc17dad4f1 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -3,6 +3,7 @@ #include <errno.h> #include <stdio.h> +#include <unistd.h> #include <readline/readline.h> #include <readline/history.h> @@ -228,7 +229,6 @@ readline_s_set_basic_word_break_characters(self, str) { #ifdef READLINE_21_OR_LATER static char *basic_word_break_characters = NULL; - char *s; StringValue(str); if (basic_word_break_characters == NULL) { @@ -268,7 +268,6 @@ readline_s_set_completer_word_break_characters(self, str) { #ifdef READLINE_21_OR_LATER static char *completer_word_break_characters = NULL; - char *s; StringValue(str); if (completer_word_break_characters == NULL) { @@ -308,7 +307,6 @@ readline_s_set_basic_quote_characters(self, str) { #ifdef READLINE_21_OR_LATER static char *basic_quote_characters = NULL; - char *s; StringValue(str); if (basic_quote_characters == NULL) { @@ -348,7 +346,6 @@ readline_s_set_completer_quote_characters(self, str) { #ifdef READLINE_21_OR_LATER static char *completer_quote_characters = NULL; - char *s; StringValue(str); if (completer_quote_characters == NULL) { @@ -388,7 +385,6 @@ readline_s_set_filename_quote_characters(self, str) { #ifdef READLINE_21_OR_LATER static char *filename_quote_characters = NULL; - char *s; StringValue(str); if (filename_quote_characters == NULL) { |