mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:53:36 +03:00
lib: feature deprecation warnings in gcc >= 4.3
Add a deprecated attribute to functions and enum values that should not be used anymore. This uses a gcc 4.3 dialect, thus is only available for this version of gcc and newer. Note that the _Pragma() keyword is introduced by C99, but is available as part of the gcc dialect even when compiling in C89 mode. It is still possible to disable deprecation at a calling module compile time by defining CURL_DISABLE_DEPRECATION. Gcc type checking macros are made aware of possible deprecations. Some testing support Perl programs are adapted to the extended declaration syntax. Several test and unit test C programs intentionally use deprecated functions/options and are annotated to not generate a warning. New test 1222 checks the deprecation status in doc and header files. Closes #9667
This commit is contained in:
parent
980510926d
commit
6967571bf2
39 changed files with 771 additions and 243 deletions
|
|
@ -110,8 +110,9 @@ All
|
|||
curl_easy_setopt(curl_handle, CURLOPT_PROGRESSFUNCTION, progress_callback);
|
||||
.fi
|
||||
.SH AVAILABILITY
|
||||
Deprecated in 7.32.0.
|
||||
Deprecated since 7.32.0.
|
||||
.SH RETURN VALUE
|
||||
Returns CURLE_OK.
|
||||
.SH "SEE ALSO"
|
||||
.BR CURLOPT_VERBOSE "(3), " CURLOPT_NOPROGRESS "(3), "
|
||||
.BR CURLOPT_XFERINFOFUNCTION "(3)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue