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 4d7629574993e365a6f1bead6cd4004701825103..5e8592ed8c7c0ae28adb95c19ba068ed172e40b2 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