Silenced compiler warnings in src/testcurl.

This commit is contained in:
Evgeny Grin (Karlson2k)
2017-10-30 21:36:27 +03:00
parent 80ff0e1596
commit 8da22ca061
27 changed files with 110 additions and 14 deletions
+3
View File
@@ -161,6 +161,8 @@ ahc_echo (void *cls,
static int ptr;
const char *me = cls;
int ret;
(void)url;(void)version; /* Unused. Silent compiler warning. */
(void)upload_data;(void)upload_data_size; /* Unused. Silent compiler warning. */
if (0 != strcmp (me, method))
return MHD_NO; /* unexpected method */
@@ -561,6 +563,7 @@ main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
int port = 1130;
(void)argc; /* Unused. Silent compiler warning. */
oneone = (NULL != strrchr (argv[0], (int) '/')) ?
(NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
+4
View File
@@ -134,6 +134,7 @@ copyBuffer (void *ptr,
size_t size, size_t nmemb,
void *ctx)
{
(void)ptr;(void)ctx; /* Unused. Silent compiler warning. */
return size * nmemb;
}
@@ -150,6 +151,8 @@ ahc_echo (void *cls,
static int ptr;
const char *me = cls;
int ret;
(void)url;(void)version; /* Unused. Silent compiler warning. */
(void)upload_data;(void)upload_data_size; /* Unused. Silent compiler warning. */
if (0 != strcmp (me, method))
return MHD_NO; /* unexpected method */
@@ -455,6 +458,7 @@ main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
int port = 1100;
(void)argc; /* Unused. Silent compiler warning. */
oneone = (NULL != strrchr (argv[0], (int) '/')) ?
(NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
+6
View File
@@ -38,6 +38,7 @@ static ssize_t
called_twice(void *cls, uint64_t pos, char *buf, size_t max)
{
struct callback_closure *cls2 = cls;
(void)pos; /* Unused. Silent compiler warning. */
if (cls2->called == 0)
{
@@ -70,6 +71,9 @@ callback(void *cls,
struct callback_closure *cbc = calloc(1, sizeof(struct callback_closure));
struct MHD_Response *r;
int ret;
(void)cls;(void)url; /* Unused. Silent compiler warning. */
(void)method;(void)version;(void)upload_data; /* Unused. Silent compiler warning. */
(void)upload_data_size;(void)con_cls; /* Unused. Silent compiler warning. */
r = MHD_create_response_from_callback (MHD_SIZE_UNKNOWN, 1024,
&called_twice, cbc,
@@ -93,6 +97,7 @@ discard_buffer (void *ptr,
size_t nmemb,
void *ctx)
{
(void)ptr;(void)ctx; /* Unused. Silent compiler warning. */
return size * nmemb;
}
@@ -118,6 +123,7 @@ main(int argc, char **argv)
struct timeval tv;
int extra;
int port;
(void)argc; (void)argv; /* Unused. Silent compiler warning. */
if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT))
port = 0;
+5 -1
View File
@@ -66,6 +66,7 @@ copyBuffer (void *ptr,
size_t size, size_t nmemb,
void *ctx)
{
(void)ptr;(void)ctx; /* Unused. Silent compiler warning. */
return size * nmemb;
}
@@ -83,6 +84,8 @@ ahc_echo (void *cls,
static int ptr;
const char *me = cls;
int ret;
(void)url;(void)version; /* Unused. Silent compiler warning. */
(void)upload_data;(void)upload_data_size; /* Unused. Silent compiler warning. */
if (0 != strcmp (me, method))
return MHD_NO; /* unexpected method */
@@ -269,12 +272,13 @@ main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
int port;
(void)argc; /* Unused. Silent compiler warning. */
if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT))
port = 0;
else
port = 1142;
oneone = (NULL != strrchr (argv[0], (int) '/')) ?
(NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
if (0 != port && oneone)
+2
View File
@@ -90,6 +90,7 @@ ahc_echo (void *cls,
int *done = cls;
struct MHD_Response *response;
int ret;
(void)version;(void)unused; /* Unused. Silent compiler warning. */
if (0 != strcasecmp ("DELETE", method))
return MHD_NO; /* unexpected method */
@@ -505,6 +506,7 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; /* Unused. Silent compiler warning. */
oneone = (NULL != strrchr (argv[0], (int) '/')) ?
(NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
+10 -4
View File
@@ -84,6 +84,9 @@ ahc_echo (void *cls,
const char *password = "testpass";
const char *realm = "test@example.com";
int ret;
(void)cls;(void)url; /* Unused. Silent compiler warning. */
(void)method;(void)version;(void)upload_data; /* Unused. Silent compiler warning. */
(void)upload_data_size;(void)unused; /* Unused. Silent compiler warning. */
username = MHD_digest_auth_get_username (connection);
if ( (username == NULL) ||
@@ -133,17 +136,19 @@ ahc_echo (void *cls,
static int
testDigestAuth ()
{
int fd;
CURL *c;
CURLcode errornum;
struct MHD_Daemon *d;
struct CBC cbc;
size_t len;
size_t off = 0;
char buf[2048];
char rnd[8];
int port;
char url[128];
#ifndef WINDOWS
int fd;
size_t len;
size_t off = 0;
#endif /* ! WINDOWS */
if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT))
port = 0;
@@ -187,7 +192,7 @@ testDigestAuth ()
GetLastError ());
return 1;
}
b = CryptGenRandom (cc, 8, rnd);
b = CryptGenRandom (cc, 8, (BYTE*)rnd);
if (b == 0)
{
fprintf (stderr, "Failed to generate 8 random bytes: %lu\n",
@@ -251,6 +256,7 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; (void)argv; /* Unused. Silent compiler warning. */
#ifdef MHD_HTTPS_REQUIRE_GRYPT
#ifdef HAVE_GCRYPT_H
+10 -4
View File
@@ -82,6 +82,9 @@ ahc_echo (void *cls,
const char *password = "testpass";
const char *realm = "test@example.com";
int ret;
(void)cls;(void)url; /* Unused. Silent compiler warning. */
(void)method;(void)version;(void)upload_data; /* Unused. Silent compiler warning. */
(void)upload_data_size;(void)unused; /* Unused. Silent compiler warning. */
username = MHD_digest_auth_get_username(connection);
if ( (username == NULL) ||
@@ -128,17 +131,19 @@ ahc_echo (void *cls,
static int
testDigestAuth ()
{
int fd;
CURL *c;
CURLcode errornum;
struct MHD_Daemon *d;
struct CBC cbc;
size_t len;
size_t off = 0;
char buf[2048];
char rnd[8];
int port;
char url[128];
#ifndef WINDOWS
int fd;
size_t len;
size_t off = 0;
#endif /* ! WINDOWS */
if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT))
port = 0;
@@ -182,7 +187,7 @@ testDigestAuth ()
GetLastError ());
return 1;
}
b = CryptGenRandom (cc, 8, rnd);
b = CryptGenRandom (cc, 8, (BYTE*)rnd);
if (b == 0)
{
fprintf (stderr, "Failed to generate 8 random bytes: %lu\n",
@@ -246,6 +251,7 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; (void)argv; /* Unused. Silent compiler warning. */
#ifdef MHD_HTTPS_REQUIRE_GRYPT
#ifdef HAVE_GCRYPT_H
+5
View File
@@ -88,6 +88,7 @@ ahc_echo (void *cls,
const char *me = cls;
struct MHD_Response *response;
int ret;
(void)version;(void)upload_data;(void)upload_data_size; /* Unused. Silent compiler warning. */
if (0 != strcasecmp (me, method))
return MHD_NO; /* unexpected method */
@@ -633,6 +634,8 @@ ahc_empty (void *cls,
static int ptr;
struct MHD_Response *response;
int ret;
(void)cls;(void)url;(void)url;(void)version; /* Unused. Silent compiler warning. */
(void)upload_data;(void)upload_data_size; /* Unused. Silent compiler warning. */
if (0 != strcasecmp ("GET", method))
return MHD_NO; /* unexpected method */
@@ -658,6 +661,7 @@ curlExcessFound(CURL *c, curl_infotype type, char *data, size_t size, void *cls)
{
static const char *excess_found = "Excess found";
const size_t str_size = strlen (excess_found);
(void)c; /* Unused. Silent compiler warning. */
if (CURLINFO_TEXT == type
&& size >= str_size
@@ -744,6 +748,7 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; /* Unused. Silent compiler warning. */
oneone = (NULL != strrchr (argv[0], (int) '/')) ?
(NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
+3
View File
@@ -119,6 +119,8 @@ ahc_echo (void *cls,
struct MHD_Response *response;
struct MHD_Response **responseptr;
int ret;
(void)url;(void)version; /* Unused. Silent compiler warning. */
(void)upload_data;(void)upload_data_size; /* Unused. Silent compiler warning. */
if (0 != strcmp (me, method))
return MHD_NO; /* unexpected method */
@@ -497,6 +499,7 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; (void)argv; /* Unused. Silent compiler warning. */
if (0 != curl_global_init (CURL_GLOBAL_WIN32))
return 2;
+2
View File
@@ -386,6 +386,8 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; /* Unused. Silent compiler warning. */
#ifndef _WIN32
/* Solaris has no way to disable SIGPIPE on socket disconnect. */
if (MHD_NO == MHD_is_feature_supported (MHD_FEATURE_AUTOSUPPRESS_SIGPIPE))
+3
View File
@@ -87,6 +87,8 @@ ahc_echo (void *cls,
struct MHD_Response *response;
int ret;
int fd;
(void)url;(void)version; /* Unused. Silent compiler warning. */
(void)upload_data;(void)upload_data_size; /* Unused. Silent compiler warning. */
if (0 != strcmp (me, method))
return MHD_NO; /* unexpected method */
@@ -572,6 +574,7 @@ main (int argc, char *const *argv)
unsigned int errorCount = 0;
const char *tmp;
FILE *f;
(void)argc; /* Unused. Silent compiler warning. */
if ( (NULL == (tmp = getenv ("TMPDIR"))) &&
(NULL == (tmp = getenv ("TMP"))) &&
+2
View File
@@ -85,6 +85,7 @@ ahc_echo (void *cls,
const char *me = cls;
struct MHD_Response *response;
int ret;
(void)version;(void)upload_data;(void)upload_data_size; /* Unused. Silent compiler warning. */
if (0 != strcmp (me, method))
return MHD_NO; /* unexpected method */
@@ -336,6 +337,7 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; /* Unused. Silent compiler warning. */
oneone = (NULL != strrchr (argv[0], (int) '/')) ?
(NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
+1
View File
@@ -127,6 +127,7 @@ ahc_echo (void *cls,
struct MHD_Response *response;
int ret;
static size_t processed;
(void)version; /* Unused. Silent compiler warning. */
if (0 != strcmp ("PUT", method))
return MHD_NO; /* unexpected method */
+5
View File
@@ -48,6 +48,7 @@ static int oneone;
static int
apc_all (void *cls, const struct sockaddr *addr, socklen_t addrlen)
{
(void)cls;(void)addr;(void)addrlen; /* Unused. Silent compiler warning. */
return MHD_YES;
}
@@ -61,6 +62,7 @@ struct CBC
static size_t
copyBuffer (void *ptr, size_t size, size_t nmemb, void *ctx)
{
(void)ptr;(void)ctx; /* Unused. Silent compiler warning. */
return size * nmemb;
}
@@ -76,6 +78,8 @@ ahc_echo (void *cls,
const char *me = cls;
struct MHD_Response *response;
int ret;
(void)version;(void)upload_data; /* Unused. Silent compiler warning. */
(void)upload_data_size;(void)unused; /* Unused. Silent compiler warning. */
if (0 != strcmp (me, method))
return MHD_NO; /* unexpected method */
@@ -276,6 +280,7 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; /* Unused. Silent compiler warning. */
oneone = (NULL != strrchr (argv[0], (int) '/')) ?
(NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
+2
View File
@@ -72,6 +72,7 @@ ahc_echo (void *cls,
struct MHD_Response *response;
int ret;
const char *hdr;
(void)version;(void)upload_data;(void)upload_data_size; /* Unused. Silent compiler warning. */
if (0 != strcmp (me, method))
return MHD_NO; /* unexpected method */
@@ -271,6 +272,7 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; /* Unused. Silent compiler warning. */
oneone = (NULL != strrchr (argv[0], (int) '/')) ?
(NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
+7
View File
@@ -69,6 +69,7 @@ completed_cb (void *cls,
enum MHD_RequestTerminationCode toe)
{
struct MHD_PostProcessor *pp = *con_cls;
(void)cls;(void)connection;(void)toe; /* Unused. Silent compiler warning. */
if (NULL != pp)
MHD_destroy_post_processor (pp);
@@ -104,6 +105,8 @@ post_iterator (void *cls,
const char *value, uint64_t off, size_t size)
{
int *eok = cls;
(void)kind;(void)filename;(void)content_type; /* Unused. Silent compiler warning. */
(void)transfer_encoding;(void)off; /* Unused. Silent compiler warning. */
if ((0 == strcasecmp (key, "name")) &&
(size == strlen ("daniel")) && (0 == strncmp (value, "daniel", size)))
@@ -128,6 +131,7 @@ ahc_echo (void *cls,
struct MHD_Response *response;
struct MHD_PostProcessor *pp;
int ret;
(void)cls;(void)version; /* Unused. Silent compiler warning. */
if (0 != strcasecmp ("POST", method))
{
@@ -551,6 +555,8 @@ ahc_cancel (void *cls,
{
struct MHD_Response *response;
int ret;
(void)cls;(void)url;(void)version; /* Unused. Silent compiler warning. */
(void)upload_data;(void)upload_data_size; /* Unused. Silent compiler warning. */
if (0 != strcasecmp ("POST", method))
{
@@ -762,6 +768,7 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; /* Unused. Silent compiler warning. */
oneone = (NULL != strrchr (argv[0], (int) '/')) ?
(NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
+4 -1
View File
@@ -81,6 +81,8 @@ ahc_echo (void *cls,
static int marker;
struct MHD_Response *response;
int ret;
(void)cls;(void)url;(void)version; /* Unused. Silent compiler warning. */
(void)upload_data;(void)upload_data_size; /* Unused. Silent compiler warning. */
if (0 != strcmp ("POST", method))
{
@@ -475,7 +477,7 @@ testExternalPost ()
if (MHD_NO == MHD_get_timeout (d, &timeout))
timeout = 100; /* 100ms == INFTY -- CURL bug... */
if ((CURLM_OK == curl_multi_timeout (multi, &ctimeout)) &&
(ctimeout < timeout) && (ctimeout >= 0))
(ctimeout < (long long)timeout) && (ctimeout >= 0))
timeout = ctimeout;
if ( (c == NULL) || (running == 0) )
timeout = 0; /* terminate quickly... */
@@ -557,6 +559,7 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; /* Unused. Silent compiler warning. */
oneone = (NULL != strrchr (argv[0], (int) '/')) ?
(NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
+5
View File
@@ -65,6 +65,7 @@ completed_cb (void *cls,
enum MHD_RequestTerminationCode toe)
{
struct MHD_PostProcessor *pp = *con_cls;
(void)cls;(void)connection;(void)toe; /* Unused. Silent compiler warning. */
if (NULL != pp)
MHD_destroy_post_processor (pp);
@@ -100,6 +101,8 @@ post_iterator (void *cls,
const char *value, uint64_t off, size_t size)
{
int *eok = cls;
(void)kind;(void)filename;(void)content_type; /* Unused. Silent compiler warning. */
(void)transfer_encoding;(void)off; /* Unused. Silent compiler warning. */
#if 0
fprintf (stderr, "PI sees %s-%.*s\n", key, size, value);
@@ -127,6 +130,7 @@ ahc_echo (void *cls,
struct MHD_Response *response;
struct MHD_PostProcessor *pp;
int ret;
(void)cls;(void)version; /* Unused. Silent compiler warning. */
if (0 != strcmp ("POST", method))
{
@@ -571,6 +575,7 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; /* Unused. Silent compiler warning. */
#ifdef MHD_HTTPS_REQUIRE_GRYPT
#ifdef HAVE_GCRYPT_H
+2
View File
@@ -73,6 +73,7 @@ ahc_echo (void *cls,
struct MHD_Response *response;
int ret;
const char *hdr;
(void)version;(void)upload_data;(void)upload_data_size; /* Unused. Silent compiler warning. */
if (0 != strcmp (me, method))
return MHD_NO; /* unexpected method */
@@ -271,6 +272,7 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; /* Unused. Silent compiler warning. */
oneone = (NULL != strrchr (argv[0], (int) '/')) ?
(NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
+2
View File
@@ -91,6 +91,7 @@ ahc_echo (void *cls,
struct MHD_Response *response;
int ret;
const char *hdr;
(void)version;(void)upload_data;(void)upload_data_size; /* Unused. Silent compiler warning. */
if (0 != strcmp (me, method))
return MHD_NO; /* unexpected method */
@@ -515,6 +516,7 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; /* Unused. Silent compiler warning. */
oneone = (NULL != strrchr (argv[0], (int) '/')) ?
(NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
+2
View File
@@ -90,6 +90,7 @@ ahc_echo (void *cls,
int *done = cls;
struct MHD_Response *response;
int ret;
(void)version;(void)unused; /* Unused. Silent compiler warning. */
if (0 != strcasecmp ("PUT", method))
return MHD_NO; /* unexpected method */
@@ -516,6 +517,7 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; /* Unused. Silent compiler warning. */
oneone = (NULL != strrchr (argv[0], (int) '/')) ?
(NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
+2
View File
@@ -92,6 +92,7 @@ ahc_echo (void *cls,
struct MHD_Response *response;
int ret;
int have;
(void)version;(void)unused; /* Unused. Silent compiler warning. */
if (0 != strcmp ("PUT", method))
return MHD_NO; /* unexpected method */
@@ -511,6 +512,7 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; (void)argv; /* Unused. Silent compiler warning. */
if (0 != curl_global_init (CURL_GLOBAL_WIN32))
return 2;
+3
View File
@@ -83,6 +83,7 @@ ahc_echo (void *cls,
const char *me = cls;
struct MHD_Response *response;
int ret;
(void)version;(void)upload_data;(void)upload_data_size; /* Unused. Silent compiler warning. */
if (0 != strcmp (me, method))
return MHD_NO; /* unexpected method */
@@ -107,6 +108,7 @@ static void
request_completed (void *cls, struct MHD_Connection *connection,
void **con_cls, enum MHD_RequestTerminationCode code)
{
(void)connection;(void)con_cls;(void)code; /* Unused. Silent compiler warning. */
int *done = (int *)cls;
*done = 1;
}
@@ -524,6 +526,7 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; (void)argv; /* Unused. Silent compiler warning. */
if (0 != curl_global_init (CURL_GLOBAL_WIN32))
return 2;
+5
View File
@@ -48,6 +48,7 @@ http_PanicCallback (void *cls,
unsigned int line,
const char *reason)
{
(void)cls; /* Unused. Silent compiler warning. */
fprintf( stderr,
"PANIC: exit process: %s at %s:%u\n",
reason,
@@ -104,6 +105,7 @@ http_ContentReaderCallback (void *cls,
{
static const char alphabet[] = "\nABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
struct ContentReaderUserdata *userdata = cls;
(void)pos;(void)max; /* Unused. Silent compiler warning. */
if( userdata->bytes_written >= 1024)
{
@@ -131,6 +133,9 @@ http_AccessHandlerCallback (void *cls,
void **con_cls )
{
int ret;
(void)cls;(void)url; /* Unused. Silent compiler warning. */
(void)method;(void)version;(void)upload_data; /* Unused. Silent compiler warning. */
(void)upload_data_size; /* Unused. Silent compiler warning. */
/* Never respond on first call */
if (NULL == *con_cls)
+5 -1
View File
@@ -57,6 +57,9 @@ connection_handler (void *cls,
void **ptr)
{
static int i;
(void)cls;(void)url; /* Unused. Silent compiler warning. */
(void)method;(void)version;(void)upload_data; /* Unused. Silent compiler warning. */
(void)upload_data_size; /* Unused. Silent compiler warning. */
if (*ptr == NULL)
{
@@ -82,11 +85,12 @@ connection_handler (void *cls,
static size_t
write_data (void *ptr, size_t size, size_t nmemb, void *stream)
{
(void)ptr;(void)stream; /* Unused. Silent compiler warning. */
return size * nmemb;
}
int
main ()
main (void)
{
struct MHD_Daemon *daemon;
int port;
+7 -3
View File
@@ -51,12 +51,13 @@ struct CBC
static void
termination_cb (void *cls,
struct MHD_Connection *connection,
void **con_cls,
termination_cb (void *cls,
struct MHD_Connection *connection,
void **con_cls,
enum MHD_RequestTerminationCode toe)
{
int *test = cls;
(void)connection;(void)con_cls; /* Unused. Silent compiler warning. */
switch (toe)
{
@@ -101,6 +102,7 @@ putBuffer (void *stream, size_t size, size_t nmemb, void *ptr)
static size_t
putBuffer_fail (void *stream, size_t size, size_t nmemb, void *ptr)
{
(void)stream;(void)size;(void)nmemb;(void)ptr; /* Unused. Silent compiler warning. */
return 0;
}
@@ -130,6 +132,7 @@ ahc_echo (void *cls,
int *done = cls;
struct MHD_Response *response;
int ret;
(void)version;(void)unused; /* Unused. Silent compiler warning. */
if (0 != strcmp ("PUT", method))
return MHD_NO; /* unexpected method */
@@ -313,6 +316,7 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; /* Unused. Silent compiler warning. */
oneone = (NULL != strrchr (argv[0], (int) '/')) ?
(NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
+3
View File
@@ -73,6 +73,7 @@ test_values (void *cls,
const char *key,
const char *value)
{
(void)cls;(void)kind; /* Unused. Silent compiler warning. */
if ( (0 == strcmp (key, "a")) &&
(0 == strcmp (value, "b")) )
matches += 1;
@@ -98,6 +99,7 @@ ahc_echo (void *cls,
const char *me = cls;
struct MHD_Response *response;
int ret;
(void)version;(void)upload_data;(void)upload_data_size; /* Unused. Silent compiler warning. */
if (0 != strcmp (me, method))
return MHD_NO; /* unexpected method */
@@ -197,6 +199,7 @@ int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void)argc; /* Unused. Silent compiler warning. */
oneone = (NULL != strrchr (argv[0], (int) '/')) ?
(NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;