mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-12 04:31:14 +00:00
![]() 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> |
||
---|---|---|
.. | ||
App | ||
Enclave | ||
Makefile | ||
Makefile_minimal |