roken: warning: ‘line’ defined but not used [-Wunused-variable]
In rkpty.c line[] must be defined if defined(HAVE_OPENPTY), defined(__osf__), or defined(STREAMSPTY). Otherwise, it is unused.
This commit is contained in:
@@ -83,7 +83,9 @@ static int version_flag;
|
||||
|
||||
static int master;
|
||||
static int slave;
|
||||
#if defined(HAVE_OPENPTY) || defined(__osf__) || defined(STREAMSPTY)
|
||||
static char line[256] = { 0 };
|
||||
#endif
|
||||
|
||||
static void
|
||||
caught_signal(int signo)
|
||||
|
Reference in New Issue
Block a user