summaryrefslogtreecommitdiffstats
path: root/ext/readline
diff options
context:
space:
mode:
authormichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-16 07:38:40 +0000
committermichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-16 07:38:40 +0000
commit549225bf5fbf99683360577330d1a3745b67a478 (patch)
tree07808bdd94888f12e0e1b1a6f52777f213d50b91 /ext/readline
parent42bc5d26f22c0f0af50c4c6f1fbd73bcb18ffbbf (diff)
-Wall cleanups (removed unused vars, no 'code has no effect' warnings)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/readline.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index 2f460ea3e..fc17dad4f 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) {