com php-src: Suppress deprecation warning on IDNA2003 ICU methods for clang: ext/intl/idn/idn.c

From: Date: Fri, 23 Aug 2019 10:18:58 +0000
Subject: com php-src: Suppress deprecation warning on IDNA2003 ICU methods for clang: ext/intl/idn/idn.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-108000@lists.php.net to get a copy of this message
Commit: ff7029b65b43578781abd8c767efa4a90b296351 Author: Christoph M. Becker <cmbecker69@gmx.de> Fri, 23 Aug 2019 11:14:18 +0200 Parents: cdf16c010a11fc1f91c8807556ccc15b374c0922 Branches: PHP-7.2 PHP-7..3 PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ff7029b65b43578781abd8c767efa4a90b296351 Log: Suppress deprecation warning on IDNA2003 ICU methods for clang Changed paths: M ext/intl/idn/idn.c Diff: diff --git a/ext/intl/idn/idn.c b/ext/intl/idn/idn.c index 877a27c..60d7b82 100644 --- a/ext/intl/idn/idn.c +++ b/ext/intl/idn/idn.c @@ -223,7 +223,10 @@ static void php_intl_idn_to(INTERNAL_FUNCTION_PARAMETERS, UParseError parse_error; status = U_ZERO_ERROR; -#if (ZEND_GCC_VERSION >= 4002) && !defined(__clang__) +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wdeprecated-declarations" +#elif ZEND_GCC_VERSION >= 4002 # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif @@ -232,7 +235,9 @@ static void php_intl_idn_to(INTERNAL_FUNCTION_PARAMETERS, } else { converted_ret_len = uidna_IDNToUnicode(ustring, ustring_len, converted, MAXPATHLEN, (int32_t)option, &parse_error, &status); } -#if (ZEND_GCC_VERSION >= 4002) && !defined(__clang__) +#if defined(__clang__) +# pragma clang diagnostic pop +#elif ZEND_GCC_VERSION >= 4002 # pragma GCC diagnostic pop #endif efree(ustring);

« previous php.cvs (#108000) next »