Skip to content

Avoid unused parameter error in Curl_resolv_check#8505

Closed
sgebbie wants to merge 1 commit into
curl:masterfrom
sgebbie:hostip-unused-parameter
Closed

Avoid unused parameter error in Curl_resolv_check#8505
sgebbie wants to merge 1 commit into
curl:masterfrom
sgebbie:hostip-unused-parameter

Conversation

@sgebbie
Copy link
Copy Markdown
Contributor

@sgebbie sgebbie commented Feb 24, 2022

When built without DNS-over-HTTP and without asynchronous resolvers,
neither the dns nor the data parameters are used.

That is Curl_resolv_check appears to call
Curl_resolver_is_resolved(data, dns). But,
with CURL_DISABLE_DOH without CURLRES_ASYNCH, the call is actually
elided via a macro definition.

This fix resolves the resultant: "unused parameter 'data'" error.

When built without DNS-over-HTTP and without asynchronous resolvers,
neither the dns nor the data parameters are used.

That is Curl_resolv_check appears to call
Curl_resolver_is_resolved(data, dns). But,
with CURL_DISABLE_DOH without CURLRES_ASYNCH, the call is actually
elided via a macro definition.

This fix resolves the resultant: "unused parameter 'data'" error.
@bagder bagder closed this in 8a1fa3b Feb 24, 2022
@bagder
Copy link
Copy Markdown
Member

bagder commented Feb 24, 2022

Thanks!

@sgebbie
Copy link
Copy Markdown
Contributor Author

sgebbie commented Feb 24, 2022

Thanks!

@bagder - Thanks for the quick review and fast turn around. Much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants