-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
curl: add my_setopt_long() and _offt() #16669
Conversation
Two new dedicated functions for setting long and curl_off_t options with curl_easy_setopt(). These make it easier to make sure we pass on the right option (types) so that the --libcurl code also gets right.
This comment was marked as resolved.
This comment was marked as resolved.
struct OperationConfig *config = per->config; /* for the macro below */ | ||
#ifdef CURL_DISABLE_LIBCURL_OPTION | ||
(void)config; | ||
(void)global; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This leads to an unused parameter warning with CURL_DISABLE_LIBCURL_OPTION
because the my_setopt
macros don't use global
in this case:
https://curl.se/dev/log.cgi?id=20250312061525-3878059#prob1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm on it.
That would also indicate we could use a new CI job...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two new dedicated functions for setting long and curl_off_t options with curl_easy_setopt(). These make it easier to make sure we pass on the right option (types) so that the --libcurl code also gets right.