Skip to content

Commit

Permalink
fixup handler change to work with disabled-verbose-messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Jan 11, 2021
1 parent 988720f commit db008a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/curl_gssapi.c
Expand Up @@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 2011 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 2011 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
Expand Down Expand Up @@ -131,6 +131,10 @@ void Curl_gss_log_error(struct Curl_easy *data, const char *prefix,
display_gss_error(minor, GSS_C_MECH_CODE, buf, len);

infof(data, "%s%s\n", prefix, buf);
#ifdef CURL_DISABLE_VERBOSE_STRINGS
(void)data;
(void)prefix;
#endif
}

#endif /* HAVE_GSSAPI */
3 changes: 3 additions & 0 deletions lib/url.c
Expand Up @@ -732,6 +732,9 @@ static void conn_shutdown(struct Curl_easy *data, struct connectdata *conn)
Curl_closesocket(conn, conn->tempsock[0]);
if(CURL_SOCKET_BAD != conn->tempsock[1])
Curl_closesocket(conn, conn->tempsock[1]);
#ifdef CURL_DISABLE_VERBOSE_STRINGS
(void)data;
#endif
}

static void conn_free(struct connectdata *conn)
Expand Down

0 comments on commit db008a7

Please sign in to comment.