From 43da5b20664ea04161b6e6edc9393eaa5d6b2e2d Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 16 Nov 2014 18:19:58 +0000 Subject: connect.c: Fixed compilation warning when no verbose string support warning: unused parameter 'reason' --- lib/connect.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/connect.c b/lib/connect.c index 5d522b381..3a1bc2df7 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -1333,8 +1333,13 @@ CURLcode Curl_socket(struct connectdata *conn, void Curl_conncontrol(struct connectdata *conn, bool closeit, const char *reason) { +#if defined(CURL_DISABLE_VERBOSE_STRINGS) + (void) reason; +#endif + infof(conn->data, "Marked for [%s]: %s\n", closeit?"closure":"keep alive", reason); + conn->bits.close = closeit; /* the only place in the source code that should assign this bit */ } -- cgit v1.2.3