Skip to content

Commit c43fc20

Browse files
committed
Raise minimal GCC version,
Test with 4.8 is OK With 4.4: error: #pragma GCC diagnostic not allowed inside functions
1 parent bca6600 commit c43fc20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/intl/idn/idn.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ static void php_intl_idn_to(INTERNAL_FUNCTION_PARAMETERS,
226226
#if defined(__clang__)
227227
# pragma clang diagnostic push
228228
# pragma clang diagnostic ignored "-Wdeprecated-declarations"
229-
#elif ZEND_GCC_VERSION >= 4002
229+
#elif ZEND_GCC_VERSION >= 4008
230230
# pragma GCC diagnostic push
231231
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
232232
#endif
@@ -237,7 +237,7 @@ static void php_intl_idn_to(INTERNAL_FUNCTION_PARAMETERS,
237237
}
238238
#if defined(__clang__)
239239
# pragma clang diagnostic pop
240-
#elif ZEND_GCC_VERSION >= 4002
240+
#elif ZEND_GCC_VERSION >= 4008
241241
# pragma GCC diagnostic pop
242242
#endif
243243
efree(ustring);

0 commit comments

Comments
 (0)