Skip to content

Commit c343c1b

Browse files
committed
Fix some -Wold-style-declaration compiler warnings
1 parent 0652241 commit c343c1b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Zend/zend_execute.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ static zend_always_inline zend_bool i_zend_check_property_type(zend_property_inf
995995
return zend_verify_scalar_type_hint(ZEND_TYPE_FULL_MASK(info->type), property, strict, 0);
996996
}
997997

998-
static zend_bool zend_always_inline i_zend_verify_property_type(zend_property_info *info, zval *property, zend_bool strict)
998+
static zend_always_inline zend_bool i_zend_verify_property_type(zend_property_info *info, zval *property, zend_bool strict)
999999
{
10001000
if (i_zend_check_property_type(info, property, strict)) {
10011001
return 1;

ext/reflection/php_reflection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static inline reflection_object *reflection_object_from_obj(zend_object *obj) {
161161

162162
static zend_object_handlers reflection_object_handlers;
163163

164-
static uint32_t zend_always_inline prop_get_flags(property_reference *ref) {
164+
static zend_always_inline uint32_t prop_get_flags(property_reference *ref) {
165165
return ref->prop ? ref->prop->flags : ZEND_ACC_PUBLIC;
166166
}
167167

sapi/phpdbg/phpdbg_utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
ZEND_EXTERN_MODULE_GLOBALS(phpdbg)
4040

4141
/* {{{ color structures */
42-
const static phpdbg_color_t colors[] = {
42+
static const phpdbg_color_t colors[] = {
4343
PHPDBG_COLOR_D("none", "0;0"),
4444

4545
PHPDBG_COLOR_D("white", "0;64"),
@@ -70,7 +70,7 @@ const static phpdbg_color_t colors[] = {
7070
}; /* }}} */
7171

7272
/* {{{ */
73-
const static phpdbg_element_t elements[] = {
73+
static const phpdbg_element_t elements[] = {
7474
PHPDBG_ELEMENT_D("prompt", PHPDBG_COLOR_PROMPT),
7575
PHPDBG_ELEMENT_D("error", PHPDBG_COLOR_ERROR),
7676
PHPDBG_ELEMENT_D("notice", PHPDBG_COLOR_NOTICE),

0 commit comments

Comments
 (0)