Skip to content

Commit b750ac8

Browse files
bagderbch
authored andcommittedJul 19, 2023
curl.h: require gcc 12.1 for the deprecation magic
Reported-by: kchow-FTNT on github Fixes curl#10726 Closes curl#10784
1 parent 64adae8 commit b750ac8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎include/curl/curl.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@
3434
#endif
3535

3636
/* Compile-time deprecation macros. */
37-
#if defined(__GNUC__) && (__GNUC__ >= 6) && \
37+
#if defined(__GNUC__) && \
38+
((__GNUC__ > 12) || ((__GNUC__ == 12) && (__GNUC_MINOR__ >= 1 ))) && \
3839
!defined(__INTEL_COMPILER) && \
3940
!defined(CURL_DISABLE_DEPRECATION) && !defined(BUILDING_LIBCURL)
40-
#define CURL_DEPRECATED(version, message) \
41-
__attribute__((deprecated("since " # version ". " message)))
41+
#define CURL_DEPRECATED(version, message) \
42+
__attribute__((deprecated("since " # version ". " message)))
4243
#define CURL_IGNORE_DEPRECATION(statements) \
4344
_Pragma("GCC diagnostic push") \
4445
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \

0 commit comments

Comments
 (0)
Please sign in to comment.