debug-engine: fix a few type mismatches (#4189)
- use strict prototypes complained by GCC `-Wstrict-prototypes` - use `int*` instead of `int32*` Note: on some targets, int32_t is a long. for example, GCC shipped with the recent ESP-IDF has such a configuration. - https://github.com/apache/nuttx/issues/15755#issuecomment-2635652808 - https://github.com/apache/nuttx/pull/16022 - https://docs.espressif.com/projects/esp-idf/en/stable/esp32/migration-guides/release-5.x/5.0/gcc.html#espressif-toolchain-changes
This commit is contained in:
@ -58,7 +58,7 @@ static WASMDebugEngine *g_debug_engine;
|
||||
static uint32 current_instance_id = 1;
|
||||
|
||||
static uint32
|
||||
allocate_instance_id()
|
||||
allocate_instance_id(void)
|
||||
{
|
||||
uint32 id;
|
||||
|
||||
@ -302,7 +302,7 @@ wasm_debug_control_thread_destroy(WASMDebugInstance *debug_instance)
|
||||
}
|
||||
|
||||
static WASMDebugEngine *
|
||||
wasm_debug_engine_create()
|
||||
wasm_debug_engine_create(void)
|
||||
{
|
||||
WASMDebugEngine *engine;
|
||||
|
||||
@ -326,7 +326,7 @@ wasm_debug_engine_create()
|
||||
}
|
||||
|
||||
void
|
||||
wasm_debug_engine_destroy()
|
||||
wasm_debug_engine_destroy(void)
|
||||
{
|
||||
if (g_debug_engine) {
|
||||
wasm_debug_handler_deinit();
|
||||
|
||||
Reference in New Issue
Block a user