[libsoup] Silence build warning



commit 11cc820ea63de60d675e9ac124fabf909f8105b9
Author: Patrick Griffis <pgriffis igalia com>
Date:   Mon Nov 9 15:39:21 2020 -0600

    Silence build warning

 tests/context-test.c | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/tests/context-test.c b/tests/context-test.c
index 9c58f1f8..f0453d78 100644
--- a/tests/context-test.c
+++ b/tests/context-test.c
@@ -184,8 +184,12 @@ test1_thread (gpointer user_data)
 /* Test 2: An async session in the main thread with its own
  * async_context runs independently of the default main loop.
  */
-
-static gboolean idle_test2_fail (gpointer user_data);
+static gboolean
+idle_test2_fail (gpointer user_data)
+{
+       soup_test_assert (FALSE, "idle ran");
+       return FALSE;
+}
 
 static void
 do_test2 (void)
@@ -223,13 +227,6 @@ do_test2 (void)
 }
 
 #if 0
-static gboolean
-idle_test2_fail (gpointer user_data)
-{
-       soup_test_assert (FALSE, "idle ran");
-       return FALSE;
-}
-
 static void
 request_started (SoupMessage *msg, gpointer user_data)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]