tests: Fix defined-but-not-used variables if HAVE_OPENPTY is undefined

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-06-07 19:12:46 +01:00
parent 8640f95106
commit 3b87740e3e

View File

@ -209,9 +209,9 @@ test_pollable_unix_pipe (void)
static void static void
test_pollable_unix_pty (void) test_pollable_unix_pty (void)
{ {
#ifdef HAVE_OPENPTY
GPollableInputStream *in = NULL; GPollableInputStream *in = NULL;
GOutputStream *out = NULL; GOutputStream *out = NULL;
#ifdef HAVE_OPENPTY
int a, b, status; int a, b, status;
#endif #endif