Skip to content

Commit ef2fd0e

Browse files
committed
fix [-Wstrict-prototypes] buid warnings
1 parent 435a5ac commit ef2fd0e

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

Zend/zend_cpuinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static bool is_avx_supported() {
106106
return 1;
107107
}
108108
#else
109-
static bool is_avx_supported() {
109+
static bool is_avx_supported(void) {
110110
return 0;
111111
}
112112
#endif

Zend/zend_cpuinfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static inline int zend_cpu_supports_pclmul() {
215215
return __builtin_cpu_supports("pclmul");
216216
}
217217
#else
218-
static inline int zend_cpu_supports_pclmul() {
218+
static inline int zend_cpu_supports_pclmul(void) {
219219
return zend_cpu_supports(ZEND_CPU_FEATURE_PCLMULQDQ);
220220
}
221221
#endif

Zend/zend_exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ void zend_exception_restore(void) /* {{{ */
154154
}
155155
/* }}} */
156156

157-
static zend_always_inline bool is_handle_exception_set() {
157+
static zend_always_inline bool is_handle_exception_set(void) {
158158
zend_execute_data *execute_data = EG(current_execute_data);
159159
return !execute_data->func
160160
|| !ZEND_USER_CODE(execute_data->func->common.type)

Zend/zend_object_handlers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ ZEND_API zval *zend_std_read_property(zend_object *zobj, zend_string *name, int
727727
}
728728
/* }}} */
729729

730-
static zend_always_inline bool property_uses_strict_types() {
730+
static zend_always_inline bool property_uses_strict_types(void) {
731731
zend_execute_data *execute_data = EG(current_execute_data);
732732
return execute_data
733733
&& execute_data->func

ext/hash/murmur/endianness.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ static const union {
22
uint8_t u8[2];
33
uint16_t u16;
44
} EndianMix = {{ 1, 0 }};
5-
FORCE_INLINE int IsBigEndian()
5+
FORCE_INLINE int IsBigEndian(void)
66
{
77
// Constant-folded by the compiler.
88
return EndianMix.u16 != 1;

ext/spl/spl_dllist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static inline spl_dllist_object *spl_dllist_from_obj(zend_object *obj) /* {{{ */
104104

105105
#define Z_SPLDLLIST_P(zv) spl_dllist_from_obj(Z_OBJ_P((zv)))
106106

107-
static spl_ptr_llist *spl_ptr_llist_init() /* {{{ */
107+
static spl_ptr_llist *spl_ptr_llist_init(void) /* {{{ */
108108
{
109109
spl_ptr_llist *llist = emalloc(sizeof(spl_ptr_llist));
110110

sapi/cli/php_cli_server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2371,7 +2371,7 @@ static char *php_cli_server_parse_addr(const char *addr, int *pport) {
23712371
return pestrndup(addr, end - addr, 1);
23722372
}
23732373

2374-
static void php_cli_server_startup_workers() {
2374+
static void php_cli_server_startup_workers(void) {
23752375
char *workers = getenv("PHP_CLI_SERVER_WORKERS");
23762376
if (!workers) {
23772377
return;

0 commit comments

Comments
 (0)