diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-11-16 18:19:58 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-11-16 18:21:12 +0000 |
commit | 43da5b20664ea04161b6e6edc9393eaa5d6b2e2d (patch) | |
tree | 4cc71b109eac2a699d1d47c669a884c7e8070708 /lib | |
parent | 591d5ca41b7b7a9c5fb2af1d315b7657dc0fb3c1 (diff) |
connect.c: Fixed compilation warning when no verbose string support
warning: unused parameter 'reason'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connect.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ } |