From: rtel Date: Fri, 23 May 2014 16:36:49 +0000 (+0000) Subject: Add brackets in lwIP assert statement to prevent compiler warnings. X-Git-Tag: V8.1.0~49 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=44fc5eaabca2e9bb090588da774816992596843a;p=freertos Add brackets in lwIP assert statement to prevent compiler warnings. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2243 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/FreeRTOS/Demo/Common/ethernet/lwip-1.4.0/src/include/lwip/debug.h b/FreeRTOS/Demo/Common/ethernet/lwip-1.4.0/src/include/lwip/debug.h index d8359ea3a..1950a3e2e 100644 --- a/FreeRTOS/Demo/Common/ethernet/lwip-1.4.0/src/include/lwip/debug.h +++ b/FreeRTOS/Demo/Common/ethernet/lwip-1.4.0/src/include/lwip/debug.h @@ -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 */