wasm-micro-runtime/core/iwasm/libraries/libc-wasi
Haiyue Wang 625c95816d
Fix switch-case fallthrough compilation warning (#2753)
The commit fa5e9d72b0 ("Abstract POSIX filesystem functions") introduces
the build warning:

./core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c: In function ‘fd_object_release’:
./core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c:545:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
  545 |                 if (os_is_dir_stream_valid(&fo->directory.handle)) {
      |                    ^
./core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c:549:13: note: here
  549 |             default:
      |             ^~~~~~~

Refer to the commit fb4afc7ca4 ("Apply clang-format for core/iwasm compilation and libraries"),
add one line "// Fallthrough." to make compiler happy.

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
2023-11-13 15:01:13 +08:00
..
sandboxed-system-primitives Fix switch-case fallthrough compilation warning (#2753) 2023-11-13 15:01:13 +08:00
libc_wasi_wrapper.c Refactor clock functions to use WASI types (#2666) 2023-10-25 18:06:04 +08:00
libc_wasi_wrapper.h Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
libc_wasi.cmake Enable AoT and wamr-sdk, and change arguments of call wasm API (#157) 2020-01-21 13:26:14 +08:00
SConscript add porting codes of rt-thread (#494) 2021-01-14 11:26:35 +08:00