From 523201ef126d4f2d968100230e39832a791f0faf Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 7 Feb 2023 12:16:03 +0100 Subject: [PATCH] ext/curl: suppress -Wdeprecated-declarations --- ext/curl/interface.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 4fc0415e7875..36300dacfcfb 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -62,6 +62,12 @@ #include "curl_private.h" #include "curl_arginfo.h" +#ifdef __GNUC__ +/* don't complain about deprecated CURLOPT_* we're exposing to PHP; we + need to keep using those to avoid breaking PHP API compatibiltiy */ +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #ifdef PHP_CURL_NEED_OPENSSL_TSL /* {{{ */ static MUTEX_T *php_curl_openssl_tsl = NULL;