Add brackets in lwIP assert statement to prevent compiler warnings.

This commit is contained in:
Richard Barry 2014-05-23 16:36:49 +00:00
parent b215310e63
commit 09a89763ee

View File

@ -63,7 +63,7 @@
#ifndef LWIP_NOASSERT
#define LWIP_ASSERT(message, assertion) do { if(!(assertion)) \
LWIP_PLATFORM_ASSERT(message); } while(0)
{ LWIP_PLATFORM_ASSERT(message); } } while(0)
#else /* LWIP_NOASSERT */
#define LWIP_ASSERT(message, assertion)
#endif /* LWIP_NOASSERT */