Skip to content

Commit

Permalink
Raise minimal GCC version,
Browse files Browse the repository at this point in the history
Test with 4.8 is OK
With 4.4: error: #pragma GCC diagnostic not allowed inside functions
  • Loading branch information
remicollet committed Sep 10, 2019
1 parent bca6600 commit c43fc20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/intl/idn/idn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand Down

0 comments on commit c43fc20

Please sign in to comment.