Skip to content

Commit 72fc24d

Browse files
committed
debug-engine: use strict prototypes
complained by GCC -Wstrict-prototypes
1 parent 0ce026b commit 72fc24d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

core/iwasm/libraries/debug-engine/debug_engine.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static WASMDebugEngine *g_debug_engine;
5858
static uint32 current_instance_id = 1;
5959

6060
static uint32
61-
allocate_instance_id()
61+
allocate_instance_id(void)
6262
{
6363
uint32 id;
6464

@@ -302,7 +302,7 @@ wasm_debug_control_thread_destroy(WASMDebugInstance *debug_instance)
302302
}
303303

304304
static WASMDebugEngine *
305-
wasm_debug_engine_create()
305+
wasm_debug_engine_create(void)
306306
{
307307
WASMDebugEngine *engine;
308308

@@ -326,7 +326,7 @@ wasm_debug_engine_create()
326326
}
327327

328328
void
329-
wasm_debug_engine_destroy()
329+
wasm_debug_engine_destroy(void)
330330
{
331331
if (g_debug_engine) {
332332
wasm_debug_handler_deinit();

core/iwasm/libraries/debug-engine/debug_engine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ bool
133133
wasm_debug_engine_init(char *ip_addr, int32 process_port);
134134

135135
void
136-
wasm_debug_engine_destroy();
136+
wasm_debug_engine_destroy(void);
137137

138138
WASMExecEnv *
139139
wasm_debug_instance_get_current_env(WASMDebugInstance *instance);

core/iwasm/libraries/debug-engine/handler.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static char *tmpbuf;
3434
static korp_mutex tmpbuf_lock;
3535

3636
int
37-
wasm_debug_handler_init()
37+
wasm_debug_handler_init(void)
3838
{
3939
int ret;
4040
tmpbuf = wasm_runtime_malloc(MAX_PACKET_SIZE);
@@ -51,7 +51,7 @@ wasm_debug_handler_init()
5151
}
5252

5353
void
54-
wasm_debug_handler_deinit()
54+
wasm_debug_handler_deinit(void)
5555
{
5656
wasm_runtime_free(tmpbuf);
5757
tmpbuf = NULL;

core/iwasm/libraries/debug-engine/handler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
#include "gdbserver.h"
1010

1111
int
12-
wasm_debug_handler_init();
12+
wasm_debug_handler_init(void);
1313

1414
void
15-
wasm_debug_handler_deinit();
15+
wasm_debug_handler_deinit(void);
1616

1717
void
1818
handle_interrupt(WASMGDBServer *server);

0 commit comments

Comments
 (0)