mirror of
https://github.com/apache/nuttx.git
synced 2025-12-13 06:14:40 +08:00
According to the standard definition, assert should return a void expression https://pubs.opengroup.org/onlinepubs/007904875/basedefs/assert.h.html This patch involves two changes: If you define the NDEBUG macro, assert does not use any parameters and directly returns a void expression. assert should return a void expression and cannot use do-while statements. If the following code , a compilation error will occur. Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
6.6 KiB
6.6 KiB