mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.1'
* PHP-8.1: Suppress unused label warnings in SWITCH VM
This commit is contained in:
commit
cacafd36a7
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -1088,7 +1088,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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue