From 3b87740e3ed34a368f8be3d36ce6c2bf1232fd39 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 7 Jun 2022 19:12:46 +0100 Subject: [PATCH] tests: Fix defined-but-not-used variables if HAVE_OPENPTY is undefined Signed-off-by: Philip Withnall --- gio/tests/pollable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/tests/pollable.c b/gio/tests/pollable.c index f52fa32ab..56dfa3a31 100644 --- a/gio/tests/pollable.c +++ b/gio/tests/pollable.c @@ -209,9 +209,9 @@ test_pollable_unix_pipe (void) static void test_pollable_unix_pty (void) { +#ifdef HAVE_OPENPTY GPollableInputStream *in = NULL; GOutputStream *out = NULL; -#ifdef HAVE_OPENPTY int a, b, status; #endif