mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:11:45 +03:00
curl.h: require gcc 12.1 for the deprecation magic
Reported-by: kchow-FTNT on github Fixes #10726 Closes #10784
This commit is contained in:
parent
f5e0f52dd3
commit
c3f3c2557c
1 changed files with 4 additions and 3 deletions
|
|
@ -34,11 +34,12 @@
|
|||
#endif
|
||||
|
||||
/* Compile-time deprecation macros. */
|
||||
#if defined(__GNUC__) && (__GNUC__ >= 6) && \
|
||||
#if defined(__GNUC__) && \
|
||||
((__GNUC__ > 12) || ((__GNUC__ == 12) && (__GNUC_MINOR__ >= 1 ))) && \
|
||||
!defined(__INTEL_COMPILER) && \
|
||||
!defined(CURL_DISABLE_DEPRECATION) && !defined(BUILDING_LIBCURL)
|
||||
#define CURL_DEPRECATED(version, message) \
|
||||
__attribute__((deprecated("since " # version ". " message)))
|
||||
#define CURL_DEPRECATED(version, message) \
|
||||
__attribute__((deprecated("since " # version ". " message)))
|
||||
#define CURL_IGNORE_DEPRECATION(statements) \
|
||||
_Pragma("GCC diagnostic push") \
|
||||
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue