wasm-micro-runtime/core/iwasm
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
..
aot Grab cluster->lock when modifying exec_env->module_inst (#2685) 2023-11-09 18:56:02 +08:00
common Merge pull request #2740 from bytecodealliance/dev/wasi-libc-windows 2023-11-10 16:58:31 +08:00
compilation Fix AOT compiler simd shift opcodes (#2715) 2023-11-03 10:38:53 +08:00
doc Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00
fast-jit Fix invalid use of jit_reg_is_const_val in fast-jit (#2718) 2023-11-03 14:25:26 +08:00
include Merge branch main into dev/wasi-libc-windows 2023-11-09 10:13:59 +08:00
interpreter Merge pull request #2740 from bytecodealliance/dev/wasi-libc-windows 2023-11-10 16:58:31 +08:00
libraries Fix switch-case fallthrough compilation warning (#2753) 2023-11-13 15:01:13 +08:00
README.md Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00