Re: [PATCH] ci: do not die on deprecated-declarations warning
Jeff King <peff@peff.net> writes:
Show 7 quoted lines
>> +DEVELOPER_CFLAGS += -Wno-error=deprecated-declarations
>
> That's a pretty broad hammer. And I think it may stomp on the hack to
> rely on deprecated() in the UNUSED macro.
>
> As Ramsay suggested, we could probably use CURL_DISABLE_DEPRECATION to
> limit this just to the problematic case.
Yeah, I like that approach.
But not this one ...
Show 13 quoted lines
> + CURL_IGNORE_DEPRECATION(
> + curl_easy_setopt(result, CURLOPT_REDIR_PROTOCOLS,
> + get_curl_allowed_protocols(0));
> + curl_easy_setopt(result, CURLOPT_PROTOCOLS,
> + get_curl_allowed_protocols(-1));
> + )
>
> though I think that was introduced only in 7.87.0 along with the
> deprecation warnings themselves, so we'd need to have a fallback like:
>
> #ifndef CURL_IGNORE_DEPRECATION(x)
> #define CURL_IGNORE_DEPRECATION(x) x
> #endif