Skip to content

Commit 99371ba

Browse files
committed
ext/curl: suppress -Wdeprecated-declarations
Closes phpGH-10531.
1 parent 9cdf217 commit 99371ba

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ext/curl/interface.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@
6060
#include "ext/standard/file.h"
6161
#include "ext/standard/url.h"
6262
#include "curl_private.h"
63+
64+
#ifdef __GNUC__
65+
/* don't complain about deprecated CURLOPT_* we're exposing to PHP; we
66+
need to keep using those to avoid breaking PHP API compatibiltiy */
67+
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
68+
#endif
69+
6370
#include "curl_arginfo.h"
6471

6572
#ifdef PHP_CURL_NEED_OPENSSL_TSL /* {{{ */

0 commit comments

Comments
 (0)