mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-07-29 16:23:53 +02:00
Add brackets in lwIP assert statement to prevent compiler warnings.
This commit is contained in:
parent
b215310e63
commit
09a89763ee
@ -63,7 +63,7 @@
|
|||||||
|
|
||||||
#ifndef LWIP_NOASSERT
|
#ifndef LWIP_NOASSERT
|
||||||
#define LWIP_ASSERT(message, assertion) do { if(!(assertion)) \
|
#define LWIP_ASSERT(message, assertion) do { if(!(assertion)) \
|
||||||
LWIP_PLATFORM_ASSERT(message); } while(0)
|
{ LWIP_PLATFORM_ASSERT(message); } } while(0)
|
||||||
#else /* LWIP_NOASSERT */
|
#else /* LWIP_NOASSERT */
|
||||||
#define LWIP_ASSERT(message, assertion)
|
#define LWIP_ASSERT(message, assertion)
|
||||||
#endif /* LWIP_NOASSERT */
|
#endif /* LWIP_NOASSERT */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user