wasm-micro-runtime/core/shared/platform/zephyr
Krisztian fa7c2d37f4
clean(zephyr): reduce warnings on zephyr platform (#4860)
* clean(warnings): fix [-Wsign-compare] in zephyr_file

buf_len is a long unsigned int, while bytes_* can be negative due to error values.
We don't need to check bytes_* for negative value, as it was done during read/write op.

* clean(warnings): fix "MIN" redefined warning

Some platforms, like Zephyr, already define MIN and definition in WAMR cause
`warning: "MIN" redefined` warning.
Check if it was defined before, and do not redefine it.

Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
2026-03-05 08:58:04 +08:00
..
platform_internal.h Namespace generated headers with zephyr/ (#4670) 2025-11-24 19:20:53 +08:00
shared_platform.cmake Merge dev/zephyr_file_socket into main (#4347) 2025-08-25 16:55:23 +08:00
zephyr_clock.c Merge dev/zephyr_file_socket into main (#4347) 2025-08-25 16:55:23 +08:00
zephyr_file.c clean(zephyr): reduce warnings on zephyr platform (#4860) 2026-03-05 08:58:04 +08:00
zephyr_platform.c initialize WASI stdio handles to invalid for better error handling (#4092) 2025-05-08 08:47:07 +08:00
zephyr_socket.c Improve zephyr's networking code (#4839) 2026-02-25 16:40:57 -08:00
zephyr_thread.c Merge dev/zephyr_file_socket into main (#4347) 2025-08-25 16:55:23 +08:00
zephyr_time.c Only access Zephyr thread stats info when it's available (#3962) 2024-12-19 14:26:34 +08:00