Avoid compiler warnings when building without readline
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 6 Oct 2017 09:46:27 +0000 (11:46 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 10 Oct 2017 15:30:44 +0000 (17:30 +0200)
src/ui/terminal/terminal-reader.c

index ad3ced4960a8903396c0127cfdf9a4af67462157..0a1337d4ea0f3f8448a3f44df1524c7604825af6 100644 (file)
@@ -38,7 +38,6 @@ static const bool have_readline = true;
 
 #else
 static const bool have_readline = false;
-static int rl_end;
 #endif
 
 
@@ -251,11 +250,11 @@ readline_prompt (enum prompt_style style)
 }
 
 
+#if HAVE_READLINE
 
 static int pfd[2];
 static bool sigint_received ;
 
-
 /*
    A function similar to getc from stdio.
    However this one may be interrupted by SIGINT.
@@ -306,10 +305,6 @@ interruptible_getc (FILE *fp)
   return c;
 }
 
-
-
-#if HAVE_READLINE
-
 static void
 handler (int sig)
 {