mirror of
https://github.com/curl/curl.git
synced 2025-02-05 14:30:10 +08:00
http2: silence unused parameter warnings
In release mode, MinGW complains: error: unused parameter 'lib_error_code' [-Werror=unused-parameter]
This commit is contained in:
parent
baaf0ba358
commit
4a5b900cb1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user