summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-03-30 18:13:20 +0200
committerMarcel Raad <raad@teamviewer.com>2017-03-30 18:13:20 +0200
commit4a5b900cb1d220183abd3f71897b8039f7f5146f (patch)
tree3418eb63ff056185615dd19cf3d534b9b34dea74
parentbaaf0ba358787dcab708449399fd5eda25311b4f (diff)
downloadcurl-4a5b900cb1d220183abd3f71897b8039f7f5146f.tar.gz
http2: silence unused parameter warnings
In release mode, MinGW complains: error: unused parameter 'lib_error_code' [-Werror=unused-parameter]
-rw-r--r--lib/http2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/http2.c b/lib/http2.c
index af69c7224..270be071d 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -596,6 +596,9 @@ static int on_invalid_frame_recv(nghttp2_session *session,
{
struct Curl_easy *data_s = NULL;
(void)userp;
+#if !defined(DEBUGBUILD) || defined(CURL_DISABLE_VERBOSE_STRINGS)
+ (void)lib_error_code;
+#endif
data_s = nghttp2_session_get_stream_user_data(session, frame->hd.stream_id);
if(data_s) {
@@ -706,6 +709,9 @@ static int on_frame_not_send(nghttp2_session *session,
{
struct Curl_easy *data_s;
(void)userp;
+#if !defined(DEBUGBUILD) || defined(CURL_DISABLE_VERBOSE_STRINGS)
+ (void)lib_error_code;
+#endif
data_s = nghttp2_session_get_stream_user_data(session, frame->hd.stream_id);
if(data_s) {