From 531a011700b8d86e436b2b398476ce42153922b5 Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Sat, 3 Sep 2022 08:18:45 +0800 Subject: [PATCH] Move WASM_ENABLE_SPEC_TEST to correct place (#1447) Fix compilation warning: ``` wamr/product-mini/platforms/nuttx/../posix/main.c:622:5: warning: "WASM_ENABLE_SPEC_TEST" is not defined, evaluates to 0 [-Wundef] 622 | #if WASM_ENABLE_SPEC_TEST != 0 ``` Signed-off-by: Huang Qi --- core/config.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/config.h b/core/config.h index a00d241c..e3044975 100644 --- a/core/config.h +++ b/core/config.h @@ -282,6 +282,10 @@ #define WASM_ENABLE_GLOBAL_HEAP_POOL 0 #endif +#ifndef WASM_ENABLE_SPEC_TEST +#define WASM_ENABLE_SPEC_TEST 0 +#endif + /* Global heap pool size in bytes */ #ifndef WASM_GLOBAL_HEAP_SIZE #if WASM_ENABLE_SPEC_TEST != 0 @@ -383,10 +387,6 @@ #endif #define BLOCK_ADDR_CONFLICT_SIZE 2 -#ifndef WASM_ENABLE_SPEC_TEST -#define WASM_ENABLE_SPEC_TEST 0 -#endif - /* Default max thread num per cluster. Can be overwrite by wasm_runtime_set_max_thread_num */ #define CLUSTER_MAX_THREAD_NUM 4