travis: add build for "configure --disable-verbose"

Closes #3144
This commit is contained in:
Daniel Stenberg 2018-10-16 23:35:44 +02:00
parent 6b6ba1dc29
commit ad547fcf7b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 45 additions and 13 deletions

View file

@ -1108,7 +1108,8 @@ static ssize_t data_source_read_callback(nghttp2_session *session,
return nread;
}
#ifdef NGHTTP2_HAS_ERROR_CALLBACK
#if defined(NGHTTP2_HAS_ERROR_CALLBACK) && \
!defined(CURL_DISABLE_VERBOSE_STRINGS)
static int error_callback(nghttp2_session *session,
const char *msg,
size_t len,
@ -1226,7 +1227,9 @@ CURLcode Curl_http2_init(struct connectdata *conn)
/* nghttp2_on_header_callback */
nghttp2_session_callbacks_set_on_header_callback(callbacks, on_header);
#ifndef CURL_DISABLE_VERBOSE_STRINGS
nghttp2_session_callbacks_set_error_callback(callbacks, error_callback);
#endif
/* The nghttp2 session is not yet setup, do it */
rc = nghttp2_session_client_new(&conn->proto.httpc.h2, callbacks, conn);