mirror of
https://github.com/curl/curl.git
synced 2026-05-19 06:16:20 +03:00
connect.c: Fixed compilation warning when no verbose string support
warning: unused parameter 'reason'
This commit is contained in:
parent
591d5ca41b
commit
43da5b2066
1 changed files with 5 additions and 0 deletions
|
|
@ -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 */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue