[glib/wip/pwithnall/restore-macos-ci] tests: Fix defined-but-not-used variables if HAVE_OPENPTY is undefined
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/pwithnall/restore-macos-ci] tests: Fix defined-but-not-used variables if HAVE_OPENPTY is undefined
- Date: Tue, 7 Jun 2022 18:15:29 +0000 (UTC)
commit 3b87740e3ed34a368f8be3d36ce6c2bf1232fd39
Author: Philip Withnall <pwithnall endlessos org>
Date: Tue Jun 7 19:12:46 2022 +0100
tests: Fix defined-but-not-used variables if HAVE_OPENPTY is undefined
Signed-off-by: Philip Withnall <pwithnall endlessos org>
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 f52fa32ab8..56dfa3a31f 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]