__ASSERT (sys/util.h) is currently always active (abort()) with no debug/release gate. Upstream Zephyr compiles asserts out when CONFIG_ASSERT=n.
Add the Kconfig (default matching upstream) and gate the macro. Audit call sites for side-effectful assert expressions first — anything doing work inside __ASSERT(...) breaks silently when compiled out.
__ASSERT(sys/util.h) is currently always active (abort()) with no debug/release gate. Upstream Zephyr compiles asserts out whenCONFIG_ASSERT=n.Add the Kconfig (default matching upstream) and gate the macro. Audit call sites for side-effectful assert expressions first — anything doing work inside
__ASSERT(...)breaks silently when compiled out.