fix build with GCC-4
authorMichael Wallner <mike@php.net>
Wed, 5 Oct 2016 11:15:28 +0000 (13:15 +0200)
committerMichael Wallner <mike@php.net>
Wed, 5 Oct 2016 11:15:28 +0000 (13:15 +0200)
closes #54

src/php_http_url.c

index 4d76295..5e8592e 100644 (file)
@@ -1003,11 +1003,11 @@ static ZEND_RESULT_CODE parse_uidn_2003(struct parse_state *state)
                goto error;
        }
 
-#      if __GNUC__
+#      if __GNUC__ >= 5
 #              pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 #      endif
        ahost_len = uidna_IDNToASCII(uhost_str, uhost_len, ahost_str, 256, 3, NULL, &rc);
-#      if __GNUC__
+#      if __GNUC__ >= 5
 #              pragma GCC diagnostic pop
 #      endif