[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
- [GNUnet-SVN] [gnurl] 41/205: http2: Fix assertion error on redirect with CL=0, (continued)
- [GNUnet-SVN] [gnurl] 41/205: http2: Fix assertion error on redirect with CL=0, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 46/205: maketgz: Run updatemanpages.pl to update man pages, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 124/205: RELEASE-NOTES: synced with 556c51a2df, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 127/205: docs/Makefile.am: include CMakeLists.txt in the dist tarball, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 90/205: runtests.pl: fixed display of the Gopher IPv6 port number, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 125/205: curl: fix callback argument inconsistency, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 131/205: connect: fix unreferenced parameter warning, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 105/205: mkhelp: disable compression if the perl gzip module is unavailable, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 19/205: no-keepalive.d: fix typo, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 123/205: KNOWN_BUGS: typo, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 135/205: http2: silence unused parameter warnings,
gnunet <=
- [GNUnet-SVN] [gnurl] 177/205: .github/stale.yml: enable the stale bot, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 96/205: docs: split file lists into Makefile.inc, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 171/205: schannel: fix compiler warnings, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 183/205: poll: prefer <poll.h> over <sys/poll.h>, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 43/205: Makefile.am: Added scripts/updatemanpages.pl to EXTRA_DIST, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 194/205: .gitattributes: force shell scripts to LF, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 68/205: mbedtls: fix typo in variable name, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 198/205: openssl: make SSL_ERROR_to_str more future-proof, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 178/205: libcurl-thread.3: also mention threaded-resolver, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 145/205: docs: added examples for CURLINFO_FILETIME.3 and CURLOPT_FILETIME.3, gnunet, 2017/04/20