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:
Jeffrey Altman
2024-06-03 14:17:31 -04:00
parent 17f31adbff
commit 17402aef07

View File

@@ -83,7 +83,9 @@ static int version_flag;
static int master; static int master;
static int slave; static int slave;
#if defined(HAVE_OPENPTY) || defined(__osf__) || defined(STREAMSPTY)
static char line[256] = { 0 }; static char line[256] = { 0 };
#endif
static void static void
caught_signal(int signo) caught_signal(int signo)