From 2646d76abc180e22a504a2bcea912a70ef19e29f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 10 Feb 2023 11:31:25 +0100 Subject: [PATCH] ext/curl: suppress -Wdeprecated-declarations in curl_arginfo.h Disable the warning before including curl_arginfo.h. (Follow-up for https://github.com/php/php-src/pull/10531) --- ext/curl/interface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 8e881a78f35..025c876ad5b 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -60,7 +60,6 @@ #include "ext/standard/file.h" #include "ext/standard/url.h" #include "curl_private.h" -#include "curl_arginfo.h" #ifdef __GNUC__ /* don't complain about deprecated CURLOPT_* we're exposing to PHP; we @@ -68,6 +67,8 @@ # pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif +#include "curl_arginfo.h" + #ifdef PHP_CURL_NEED_OPENSSL_TSL /* {{{ */ static MUTEX_T *php_curl_openssl_tsl = NULL;