]> granicus.if.org Git - curl/commitdiff
connect.c: Fixed compilation warning when no verbose string support
authorSteve Holme <steve_holme@hotmail.com>
Sun, 16 Nov 2014 18:19:58 +0000 (18:19 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 16 Nov 2014 18:21:12 +0000 (18:21 +0000)
warning: unused parameter 'reason'

lib/connect.c

index 5d522b38167ee4862a41f8cad05d93d3b13397b2..3a1bc2df7df6868869bcc50ea0ea76b4b697b840 100644 (file)
@@ -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 */
 }