Skip to content

Commit

Permalink
connect.c: Fixed compilation warning when no verbose string support
Browse files Browse the repository at this point in the history
warning: unused parameter 'reason'
  • Loading branch information
captain-caveman2k committed Nov 16, 2014
1 parent 591d5ca commit 43da5b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/connect.c
Expand Up @@ -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 */
}
Expand Down

0 comments on commit 43da5b2

Please sign in to comment.