gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 135/205: http2: silence unused parameter warnings


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 135/205: http2: silence unused parameter warnings
Date: Thu, 20 Apr 2017 16:21:15 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.54.0
in repository gnurl.

commit 4a5b900cb1d220183abd3f71897b8039f7f5146f
Author: Marcel Raad <address@hidden>
AuthorDate: Thu Mar 30 18:13:20 2017 +0200

    http2: silence unused parameter warnings
    
    In release mode, MinGW complains:
    error: unused parameter 'lib_error_code' [-Werror=unused-parameter]
---
 lib/http2.c | 6 ++++++
 1 file changed, 6 insertions(+)

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) {

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]