|
From: | Axel Lin |
Subject: | [lwip-devel] [patch #9078] debug: Add braces around empty body in an 'if' statement |
Date: | Tue, 9 Aug 2016 03:27:32 +0000 (UTC) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36 |
URL: <http://savannah.nongnu.org/patch/?9078> Summary: debug: Add braces around empty body in an 'if' statement Project: lwIP - A Lightweight TCP/IP stack Submitted by: axellin Submitted on: Tue 09 Aug 2016 03:27:30 AM GMT Category: None Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: None _______________________________________________________ Details: I have below code in my cc.h: #ifdef MYSDK_LWIP_DEBUG #define LWIP_PLATFORM_ASSERT(x) MYSDK_ASSERTION_FAIL_ACTION() #else #define LWIP_PLATFORM_ASSERT(x) #endif /* ifdef MYSDK_LWIP_DEBUG */ I got below error when in non-debug build: src/include/lwip/debug.h:76:32: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body] LWIP_PLATFORM_ASSERT(message); } while(0) ^ Fix the build error by adding braces around empty body in an 'if' statement. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Tue 09 Aug 2016 03:27:30 AM GMT Name: 0001-debug-Add-braces-around-empty-body-in-an-if-statemen.patch Size: 1kB By: axellin <http://savannah.nongnu.org/patch/download.php?file_id=38152> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/patch/?9078> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |