[glib/wip/pwithnall/restore-macos-ci] tests: Fix defined-but-not-used variables if HAVE_OPENPTY is undefined



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]