mirror of
https://github.com/php/php-src.git
synced 2025-01-20 10:43:40 +08:00
- Fix compile warnings
This commit is contained in:
parent
5c0df4eb38
commit
5d0176a32b
@ -996,7 +996,7 @@ static void unicode_globals_dtor(zend_unicode_globals *unicode_globals TSRMLS_DC
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
void zend_init_opcodes_handlers();
|
||||
void zend_init_opcodes_handlers(void);
|
||||
|
||||
int zend_startup(zend_utility_functions *utility_functions, char **extensions, int start_builtin_functions) /* {{{ */
|
||||
{
|
||||
@ -1285,7 +1285,7 @@ void zend_append_version_info(zend_extension *extension) /* {{{ */
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
ZEND_API char *get_zend_version() /* {{{ */
|
||||
ZEND_API char *get_zend_version(void) /* {{{ */
|
||||
{
|
||||
return zend_version_info;
|
||||
}
|
||||
|
@ -197,8 +197,8 @@ ZEND_API zend_class_entry *zend_u_fetch_class(zend_uchar type, zstr class_name,
|
||||
void zend_verify_abstract_class(zend_class_entry *ce TSRMLS_DC);
|
||||
|
||||
#ifdef ZEND_WIN32
|
||||
void zend_init_timeout_thread();
|
||||
void zend_shutdown_timeout_thread();
|
||||
void zend_init_timeout_thread(void);
|
||||
void zend_shutdown_timeout_thread(void);
|
||||
#define WM_REGISTER_ZEND_TIMEOUT (WM_USER+1)
|
||||
#define WM_UNREGISTER_ZEND_TIMEOUT (WM_USER+2)
|
||||
#endif
|
||||
@ -215,7 +215,7 @@ void zend_shutdown_timeout_thread();
|
||||
|
||||
ZEND_API zval** zend_get_compiled_variable_value(zend_execute_data *execute_data_ptr, zend_uint var);
|
||||
|
||||
void init_unicode_strings();
|
||||
void init_unicode_strings(void);
|
||||
|
||||
#define ZEND_USER_OPCODE_CONTINUE 0 /* execute next opcode */
|
||||
#define ZEND_USER_OPCODE_RETURN 1 /* exit from executor (return from function) */
|
||||
|
@ -57,7 +57,8 @@ UChar u_return[sizeof("return ")];
|
||||
UChar u_semicolon[sizeof(" ;")];
|
||||
UChar u_doublecolon[sizeof(" ;")];
|
||||
|
||||
void init_unicode_strings() {
|
||||
void init_unicode_strings(void)
|
||||
{
|
||||
u_charsToUChars("main", u_main, sizeof("main"));
|
||||
u_charsToUChars("return ", u_return, sizeof("return "));
|
||||
u_charsToUChars(" ;", u_semicolon, sizeof(" ;"));
|
||||
@ -1545,7 +1546,7 @@ static unsigned __stdcall timeout_thread_proc(void *pArgs) /* {{{ */
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
void zend_init_timeout_thread() /* {{{ */
|
||||
void zend_init_timeout_thread(void) /* {{{ */
|
||||
{
|
||||
timeout_thread_event = CreateEvent(NULL, FALSE, FALSE, NULL);
|
||||
timeout_thread_handle = CreateEvent(NULL, FALSE, FALSE, NULL);
|
||||
@ -1554,7 +1555,7 @@ void zend_init_timeout_thread() /* {{{ */
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
void zend_shutdown_timeout_thread() /* {{{ */
|
||||
void zend_shutdown_timeout_thread(void) /* {{{ */
|
||||
{
|
||||
if (!timeout_thread_initialized) {
|
||||
return;
|
||||
|
@ -146,7 +146,7 @@ static int zend_extension_startup(zend_extension *extension) /* {{{ */
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
int zend_startup_extensions_mechanism() /* {{{ */
|
||||
int zend_startup_extensions_mechanism(void) /* {{{ */
|
||||
{
|
||||
/* Startup extensions mechanism */
|
||||
zend_llist_init(&zend_extensions, sizeof(zend_extension), (void (*)(void *)) zend_extension_dtor, 1);
|
||||
@ -155,7 +155,7 @@ int zend_startup_extensions_mechanism() /* {{{ */
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
int zend_startup_extensions() /* {{{ */
|
||||
int zend_startup_extensions(void) /* {{{ */
|
||||
{
|
||||
zend_llist_apply_with_del(&zend_extensions, (int (*)(void *)) zend_extension_startup);
|
||||
return SUCCESS;
|
||||
|
@ -46,7 +46,7 @@ static void handle_whitespace(int *emit_whitespace) /* {{{ */
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
ZEND_API void zend_indent() /* {{{ */
|
||||
ZEND_API void zend_indent(void) /* {{{ */
|
||||
{
|
||||
zval token;
|
||||
int token_type;
|
||||
|
@ -379,7 +379,7 @@ ZEND_API zval* zend_object_proxy_get(zval *property TSRMLS_DC) /* {{{ */
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
ZEND_API zend_object_handlers *zend_get_std_object_handlers() /* {{{ */
|
||||
ZEND_API zend_object_handlers *zend_get_std_object_handlers(void) /* {{{ */
|
||||
{
|
||||
return &std_object_handlers;
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ ZEND_API void zend_objects_store_free_object_storage(zend_objects_store *objects
|
||||
|
||||
ZEND_API zval *zend_object_create_proxy(zval *object, zval *member TSRMLS_DC);
|
||||
|
||||
ZEND_API zend_object_handlers *zend_get_std_object_handlers();
|
||||
ZEND_API zend_object_handlers *zend_get_std_object_handlers(void);
|
||||
END_EXTERN_C()
|
||||
|
||||
#endif /* ZEND_OBJECTS_H */
|
||||
|
@ -2551,7 +2551,7 @@ ZEND_API int zval_is_true(zval *op) /* {{{ */
|
||||
/* }}} */
|
||||
|
||||
#ifdef ZEND_USE_TOLOWER_L
|
||||
ZEND_API void zend_update_current_locale() /* {{{ */
|
||||
ZEND_API void zend_update_current_locale(void) /* {{{ */
|
||||
{
|
||||
current_locale = _get_current_locale();
|
||||
}
|
||||
|
@ -484,7 +484,7 @@ END_EXTERN_C()
|
||||
#endif
|
||||
|
||||
#ifdef ZEND_USE_TOLOWER_L
|
||||
ZEND_API void zend_update_current_locale();
|
||||
ZEND_API void zend_update_current_locale(void);
|
||||
#else
|
||||
#define zend_update_current_locale()
|
||||
#endif
|
||||
|
@ -21,7 +21,7 @@
|
||||
#ifndef ZEND_VM_H
|
||||
#define ZEND_VM_H
|
||||
|
||||
ZEND_API void zend_vm_use_old_executor();
|
||||
ZEND_API void zend_vm_use_old_executor(void);
|
||||
ZEND_API void zend_vm_set_opcode_handler(zend_op* opcode);
|
||||
|
||||
#define ZEND_VM_SET_OPCODE_HANDLER(opline) zend_vm_set_opcode_handler(opline)
|
||||
|
@ -28572,7 +28572,7 @@ static int ZEND_NULL_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
|
||||
}
|
||||
|
||||
|
||||
void zend_init_opcodes_handlers()
|
||||
void zend_init_opcodes_handlers(void)
|
||||
{
|
||||
static const opcode_handler_t labels[] = {
|
||||
ZEND_NOP_SPEC_HANDLER,
|
||||
|
@ -71,7 +71,7 @@ ZEND_API void {%EXECUTOR_NAME%}(zend_op_array *op_array TSRMLS_DC)
|
||||
|
||||
{%EXTERNAL_EXECUTOR%}
|
||||
|
||||
void {%INITIALIZER_NAME%}()
|
||||
void {%INITIALIZER_NAME%}(void)
|
||||
{
|
||||
{%EXTERNAL_LABELS%}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user