Raise minimal GCC version,
authorRemi Collet <remi@php.net>
Tue, 10 Sep 2019 14:28:35 +0000 (16:28 +0200)
committerRemi Collet <remi@php.net>
Tue, 10 Sep 2019 14:28:35 +0000 (16:28 +0200)
Test with 4.8 is OK
With 4.4: error: #pragma GCC diagnostic not allowed inside functions

ext/intl/idn/idn.c

index 60d7b829d84e8f3d41d84300a5b180492cf58ba1..96eac77048a03bc0c6ceaccd515456f0c300f809 100644 (file)
@@ -226,7 +226,7 @@ static void php_intl_idn_to(INTERNAL_FUNCTION_PARAMETERS,
 #if defined(__clang__)
 # pragma clang diagnostic push
 # pragma clang diagnostic ignored "-Wdeprecated-declarations"
-#elif ZEND_GCC_VERSION >= 4002
+#elif ZEND_GCC_VERSION >= 4008
 # pragma GCC diagnostic push
 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 #endif
@@ -237,7 +237,7 @@ static void php_intl_idn_to(INTERNAL_FUNCTION_PARAMETERS,
                }
 #if defined(__clang__)
 # pragma clang diagnostic pop
-#elif ZEND_GCC_VERSION >= 4002
+#elif ZEND_GCC_VERSION >= 4008
 # pragma GCC diagnostic pop
 #endif
                efree(ustring);