wasm-micro-runtime/product-mini/platforms
LiFeng 38c2ca63d0
sgx: fix the build warning (#653)
fix the warnings as below:

App/App.cpp: In function ‘int wamr_pal_init(const wamr_pal_attr*)’:
App/App.cpp:759:1: warning: control reaches end of non-void function [-Wreturn-type]
  759 | }
      | ^
In file included from /usr/include/string.h:495,
                 from App/App.cpp:9:
In function ‘char* strncpy(char*, const char*, size_t)’,
    inlined from ‘int enclave_init(sgx_enclave_id_t*)’ at App/App.cpp:104:16:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:34: warning: ‘char* __builtin___strncpy_chk(char*, const char*, long unsigned int, long unsigned int)’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
App/App.cpp: In function ‘int enclave_init(sgx_enclave_id_t*)’:
App/App.cpp:102:16: note: length computed here
  102 |         (strlen(home_dir) + strlen("/") + sizeof(TOKEN_FILENAME) + 1) <= MAX_PATH) {
      |          ~~~~~~^~~~~~~~~~

Signed-off-by: LiFeng <lifeng68@huawei.com>
2021-06-18 12:45:34 +08:00
..
alios-things Move application entry APIs out of wasm_runtime_common.c (#639) 2021-05-26 13:22:03 +08:00
android Re-org address unalignment access for fast-interp (#597) 2021-04-01 16:50:46 +08:00
darwin Re-org address unalignment access for fast-interp (#597) 2021-04-01 16:50:46 +08:00
esp-idf Move application entry APIs out of wasm_runtime_common.c (#639) 2021-05-26 13:22:03 +08:00
linux Import reference-types feature (#612) 2021-04-15 11:29:20 +08:00
linux-sgx sgx: fix the build warning (#653) 2021-06-18 12:45:34 +08:00
nuttx platform/nuttx: Support riscv based chips (#648) 2021-06-07 15:37:09 +08:00
riot add RIOT-OS support to WAMR (#425) 2020-10-16 11:21:53 +08:00
rt-thread 1. fix error while building project with RT-Thread Studio. (#497) 2021-01-14 18:47:52 +08:00
vxworks re-org platform APIs, simplify porting process (#201) 2020-03-16 16:43:57 +08:00
windows Implement Windows thread/mutex/cond APIs to support multi-thread (#627) 2021-05-11 16:48:49 +08:00
zephyr/simple Fix sample littlevgl/gui build issues on zephyr platform (#588) 2021-03-23 14:20:50 +08:00