diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h index 8864d5c6c0d..6ad9f1b1db2 100644 --- a/Zend/zend_portability.h +++ b/Zend/zend_portability.h @@ -252,7 +252,7 @@ char *alloca(); #endif #if defined(__GNUC__) && ZEND_GCC_VERSION >= 5000 -# define ZEND_ATTRIBUTE_UNUSED_LABEL __attribute__((cold, unused)); +# define ZEND_ATTRIBUTE_UNUSED_LABEL __attribute__((unused)); # define ZEND_ATTRIBUTE_COLD_LABEL __attribute__((cold)); # define ZEND_ATTRIBUTE_HOT_LABEL __attribute__((hot)); #else diff --git a/Zend/zend_vm_gen.php b/Zend/zend_vm_gen.php index db8ec13d261..7c150456f28 100755 --- a/Zend/zend_vm_gen.php +++ b/Zend/zend_vm_gen.php @@ -1125,7 +1125,7 @@ function gen_handler($f, $spec, $kind, $name, $op1, $op2, $use, $code, $lineno, } if ($use) { // This handler is used by other handlers. We will add label to call it. - out($f," {$spec_name}_LABEL:\n"); + out($f," {$spec_name}_LABEL: ZEND_ATTRIBUTE_UNUSED_LABEL\n"); } else { out($f,"\n"); }