gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 03/03: libcurl tests: fixed compiler warnings


From: gnunet
Subject: [libmicrohttpd] 03/03: libcurl tests: fixed compiler warnings
Date: Mon, 29 Jan 2024 22:21:26 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 6285d14f09884628f48af6c23eb9e1c470465314
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Jan 29 22:11:44 2024 +0100

    libcurl tests: fixed compiler warnings
---
 src/testcurl/test_add_conn.c           |  6 +++++-
 src/testcurl/test_concurrent_stop.c    |  2 +-
 src/testcurl/test_digestauth_emu_ext.c |  2 +-
 src/testcurl/test_get_chunked.c        | 12 ++++++------
 4 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/src/testcurl/test_add_conn.c b/src/testcurl/test_add_conn.c
index 503ad89e..cf68e6d6 100644
--- a/src/testcurl/test_add_conn.c
+++ b/src/testcurl/test_add_conn.c
@@ -763,7 +763,8 @@ startTestMhdDaemon (enum testMhdThreadsType thrType,
                           MHD_OPTION_URI_LOG_CALLBACK, &log_cb, NULL,
                           MHD_OPTION_END);
     break;
-  default:
+  case testMhdThreadInternal:
+  case testMhdThreadInternalPerConnection:
     d = MHD_start_daemon (((unsigned int) thrType) | ((unsigned int) pollType)
                           | MHD_USE_ITC
                           | (no_listen ? MHD_USE_NO_LISTEN_SOCKET : 0)
@@ -773,6 +774,9 @@ startTestMhdDaemon (enum testMhdThreadsType thrType,
                           MHD_OPTION_URI_LOG_CALLBACK, &log_cb, NULL,
                           MHD_OPTION_END);
     break;
+  default:
+    abort ();
+    break;
   }
 
   if (NULL == d)
diff --git a/src/testcurl/test_concurrent_stop.c 
b/src/testcurl/test_concurrent_stop.c
index 9c7df42f..eed6bf9a 100644
--- a/src/testcurl/test_concurrent_stop.c
+++ b/src/testcurl/test_concurrent_stop.c
@@ -96,7 +96,7 @@ thread_watchdog (void *param)
 }
 
 
-pthread_t watchdog_tid;
+static pthread_t watchdog_tid;
 
 static void
 start_watchdog (int timeout, const char *obj_name)
diff --git a/src/testcurl/test_digestauth_emu_ext.c 
b/src/testcurl/test_digestauth_emu_ext.c
index 8506a567..033be0cf 100644
--- a/src/testcurl/test_digestauth_emu_ext.c
+++ b/src/testcurl/test_digestauth_emu_ext.c
@@ -266,7 +266,7 @@ static int verbose;
 static int oldapi;
 
 /* Static helper variables */
-struct curl_slist *curl_headers;
+static struct curl_slist *curl_headers;
 
 static void
 test_global_init (void)
diff --git a/src/testcurl/test_get_chunked.c b/src/testcurl/test_get_chunked.c
index 9ffa8041..87b07b7e 100644
--- a/src/testcurl/test_get_chunked.c
+++ b/src/testcurl/test_get_chunked.c
@@ -60,32 +60,32 @@
 /**
  * Use "Connection: close" header?
  */
-int conn_close;
+static int conn_close;
 
 /**
  * Use static string response instead of callback-generated?
  */
-int resp_string;
+static int resp_string;
 
 /**
  * Use response with known size?
  */
-int resp_sized;
+static int resp_sized;
 
 /**
  * Use empty (zero-sized) response?
  */
-int resp_empty;
+static int resp_empty;
 
 /**
  * Force chunked response by response header?
  */
-int chunked_forced;
+static int chunked_forced;
 
 /**
  * MHD port used for testing
  */
-uint16_t port_global;
+static uint16_t port_global;
 
 
 struct headers_check_result

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]