diff --git a/BUILD.gn b/BUILD.gn index d4f044899a174d12ae7f95536b6026e522c762a9..b078ac0b1af8607966978bd6775a2d2787035b01 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -35,6 +35,7 @@ if (defined(ohos_lite)) { # is on lite Os for ipcamera cflags = [ "-Wno-unused-function", "-Wno-sign-compare", + "-Wno-implicit-fallthrough", ] include_dirs = [ "." ] } @@ -66,6 +67,7 @@ if (defined(ohos_lite)) { # is on lite Os for ipcamera "-Wno-unused-function", "-Wno-sign-compare", "-Wno-error", # jerry add + "-Wno-implicit-fallthrough", ] include_dirs = [ "." ] } diff --git a/jerry-port/config-jupiter.h b/jerry-port/config-jupiter.h index e26b062a28c6cdf8a258e3641a60ed1fcbe730bd..fbbc8f9ae5ded919dda8f3f916311d2dd920417f 100644 --- a/jerry-port/config-jupiter.h +++ b/jerry-port/config-jupiter.h @@ -33,8 +33,8 @@ #define JS_TASK_HEAP_SIZE (64) #endif /* JS_TASK_HEAP_SIZE */ -// >= 51400 + (64-48) * 1024 + 8 -#define JS_TASK_CONTEXT_AND_HEAP_SIZE_BYTE (JS_TASK_HEAP_SIZE * CONVERTION_RATIO + 2248 + 16) +// >= 51400 + (64-48) * 1024 + 8 / JS_TASK_HEAP_SIZE + JERRY_CONTEXT_T +#define JS_TASK_CONTEXT_AND_HEAP_SIZE_BYTE (JS_TASK_HEAP_SIZE * CONVERTION_RATIO + sizeof(jerry_context_t) + 16) #endif /* JERRY_IAR_JUPITER */