Skip to content
Browse files

MFH: Fixed compiler warnings

  • Loading branch information...
1 parent bffb8c4 commit 226c56fe76b3a63c13dc47e4f97b1862d070affc Jani Taskinen committed Jul 21, 2007
View
4 Zend/zend.c
@@ -560,7 +560,7 @@ static void scanner_globals_ctor(zend_scanner_globals *scanner_globals_p TSRMLS_
scanner_globals_p->yy_start_stack = 0;
}
-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)
{
@@ -811,7 +811,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;
}
View
4 Zend/zend_execute.h
@@ -186,8 +186,8 @@ ZEND_API zend_class_entry *zend_fetch_class(char *class_name, uint class_name_le
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
View
4 Zend/zend_execute_API.c
@@ -1375,7 +1375,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);
@@ -1384,7 +1384,7 @@ void zend_init_timeout_thread()
}
-void zend_shutdown_timeout_thread()
+void zend_shutdown_timeout_thread(void)
{
if (!timeout_thread_initialized) {
return;
View
2 Zend/zend_objects_API.c
@@ -353,7 +353,7 @@ ZEND_API zval* zend_object_proxy_get(zval *property TSRMLS_DC)
return NULL;
}
-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;
}
View
2 Zend/zend_objects_API.h
@@ -80,7 +80,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 */
View
2 Zend/zend_operators.c
@@ -1842,7 +1842,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();
}
View
2 Zend/zend_operators.h
@@ -428,7 +428,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
View
2 Zend/zend_vm.h
@@ -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)
View
2 Zend/zend_vm_execute.h
@@ -26577,7 +26577,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,
View
2 Zend/zend_vm_execute.skl
@@ -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%}
}

0 comments on commit 226c56f

Please sign in to comment.
Something went wrong with that request. Please try again.