Commit dc5e2c6a dc5e2c6a78faf0abbaad67ffb5a5b76ead594070 by Sam Roberts

Silenced warnings that can appear depending on the presence of

readline, and various terminal APIs.
1 parent d37c61a6
...@@ -17,8 +17,10 @@ ...@@ -17,8 +17,10 @@
17 17
18 #include "mail.h" 18 #include "mail.h"
19 19
20 #ifdef WITH_READLINE
20 static char **ml_command_completion __P((char *cmd, int start, int end)); 21 static char **ml_command_completion __P((char *cmd, int start, int end));
21 static char *ml_command_generator __P((const char *text, int state)); 22 static char *ml_command_generator __P((const char *text, int state));
23 #endif
22 24
23 static volatile int _interrupted; 25 static volatile int _interrupted;
24 26
...@@ -254,8 +256,10 @@ ml_command_generator (const char *text, int state) ...@@ -254,8 +256,10 @@ ml_command_generator (const char *text, int state)
254 #include <sys/ioctl.h> 256 #include <sys/ioctl.h>
255 257
256 #define STDOUT 1 258 #define STDOUT 1
259 #ifndef TIOCSTI
257 static int ch_erase; 260 static int ch_erase;
258 static int ch_kill; 261 static int ch_kill;
262 #endif
259 263
260 #if defined(TIOCSTI) 264 #if defined(TIOCSTI)
261 #elif defined(HAVE_TERMIOS_H) 265 #elif defined(HAVE_TERMIOS_H)
......