diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-06-12 12:35:02 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-06-12 12:35:02 +0200 |
commit | 09532a12a6afb28e5a956547bce8b07572a26ba5 (patch) | |
tree | 6e438da2426f247d6ef32c7110f23e6672e04ef2 | |
parent | 2fd278bc211c2102422c8d8ce0905dfc43cb5c7f (diff) | |
download | php-git-09532a12a6afb28e5a956547bce8b07572a26ba5.tar.gz |
Suppress deprecation warning in sockets.c
This one was quite a journey...
-rw-r--r-- | ext/sockets/sockets.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index dd0023f46c..f200a2819c 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -99,6 +99,14 @@ static int le_socket; static int le_addrinfo; #define le_addrinfo_name php_sockets_le_addrinfo_name +/* The AI_IDN_ALLOW_UNASSIGNED deprecations are implemented as a pragma GCC warning, + * using _Pragma() for macro support. As this warning is thrown without a warning + * category, it's also not possible to suppress it, because it is not part of + * -Wdeprecated-declarations or similar. We work around this by defining + * __glibc_macro_warning() to be empty. */ +#undef __glibc_macro_warning +#define __glibc_macro_warning(message) + /* {{{ arginfo */ ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_select, 0, 0, 4) ZEND_ARG_INFO(1, read_fds) |