Appease GCC strict prototypes warning (#3775)
This commit is contained in:
@ -28,7 +28,7 @@ typedef enum {
|
||||
} libc_wasi_parse_result_t;
|
||||
|
||||
static void
|
||||
libc_wasi_print_help()
|
||||
libc_wasi_print_help(void)
|
||||
{
|
||||
printf(" --env=<env> Pass wasi environment variables with "
|
||||
"\"key=value\"\n");
|
||||
|
||||
@ -197,7 +197,7 @@ include(${WAMR_ROOT_DIR}/build-scripts/runtime_lib.cmake)
|
||||
# NuttX wamr lib complie required: `WAMR_SOURCES` `WAMR_CFLAGS` `WAMR_INCDIRS`
|
||||
# `WAMR_DEFINITIONS`
|
||||
set(WAMR_SOURCES ${WAMR_RUNTIME_LIB_SOURCE})
|
||||
set(WAMR_CFLAGS -Wno-strict-prototypes -Wno-shadow -Wno-unused-variable
|
||||
set(WAMR_CFLAGS -Wno-shadow -Wno-unused-variable
|
||||
-Wno-int-conversion -Wno-implicit-function-declaration)
|
||||
get_directory_property(WAMR_INCDIRS INCLUDE_DIRECTORIES)
|
||||
get_directory_property(WAMR_DEFINITIONS COMPILE_DEFINITIONS)
|
||||
|
||||
@ -400,7 +400,7 @@ CFLAGS += -DWASM_ENABLE_EXCE_HANDLING=0
|
||||
CFLAGS += -DWASM_ENABLE_TAGS=0
|
||||
endif
|
||||
|
||||
CFLAGS += -Wno-strict-prototypes -Wno-shadow -Wno-unused-variable
|
||||
CFLAGS += -Wno-shadow -Wno-unused-variable
|
||||
CFLAGS += -Wno-int-conversion -Wno-implicit-function-declaration
|
||||
|
||||
CFLAGS += -I${CORE_ROOT} \
|
||||
|
||||
@ -27,7 +27,7 @@ static char **app_argv;
|
||||
|
||||
/* clang-format off */
|
||||
static int
|
||||
print_help()
|
||||
print_help(void)
|
||||
{
|
||||
printf("Usage: iwasm [-options] wasm_file [args...]\n");
|
||||
printf("options:\n");
|
||||
|
||||
Reference in New Issue
Block a user