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)
This commit is contained in:
Max Kellermann 2023-02-10 11:31:25 +01:00 committed by Ilija Tovilo
parent 0842b13e5c
commit 2646d76abc
No known key found for this signature in database
GPG key ID: A4F5D403F118200A

View file

@ -60,7 +60,6 @@
#include "ext/standard/file.h" #include "ext/standard/file.h"
#include "ext/standard/url.h" #include "ext/standard/url.h"
#include "curl_private.h" #include "curl_private.h"
#include "curl_arginfo.h"
#ifdef __GNUC__ #ifdef __GNUC__
/* don't complain about deprecated CURLOPT_* we're exposing to PHP; we /* don't complain about deprecated CURLOPT_* we're exposing to PHP; we
@ -68,6 +67,8 @@
# pragma GCC diagnostic ignored "-Wdeprecated-declarations" # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif #endif
#include "curl_arginfo.h"
#ifdef PHP_CURL_NEED_OPENSSL_TSL /* {{{ */ #ifdef PHP_CURL_NEED_OPENSSL_TSL /* {{{ */
static MUTEX_T *php_curl_openssl_tsl = NULL; static MUTEX_T *php_curl_openssl_tsl = NULL;