mirror of
https://github.com/curl/curl.git
synced 2025-04-06 16:10:34 +08: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
@ -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…
x
Reference in New Issue
Block a user