Open
Description
Shall we?
LGTM.
Do you feel it is necessary that we should use some strict compilation flags, like
-Wall -Werror
, to highlight those warnings and reduce the situation where code can be compiled on some development environments, like Ubuntu, but fails on others like macOS or others?Those are probably caused by different compilation warning flags. For example, this one will pass compilation and linking with a warning on ubuntu: warning: implicit declaration of function 'openvino_destroy'.
[ 96%] Built target iwasm Scanning dependencies of target wasi_nn_openvino [ 98%] Building C object CMakeFiles/wasi_nn_openvino.dir/workspaces/wamr/core/iwasm/libraries/wasi-nn/src/wasi_nn_openvino.c.o /workspaces/wamr/core/iwasm/libraries/wasi-nn/src/wasi_nn_openvino.c: In function 'init_backend': /workspaces/wamr/core/iwasm/libraries/wasi-nn/src/wasi_nn_openvino.c:514:5: warning: implicit declaration of function 'openvino_destroy' [-Wimplicit-function-declaration] 514 | openvino_destroy((void *)ov_ctx); | ^~~~~~~~~~~~~~~~ [100%] Linking C shared library libwasi_nn_openvino.so [100%] Built target wasi_nn_openvino
maybe.
implicit functions usually cause errors here on macOS.
Originally posted by @yamt in #4305 (comment)
Metadata
Metadata
Assignees
Labels
No labels