patchlwIP - A Lightweight TCP/IP stack - Patches: patch #9078, debug: Add braces around empty...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #9078: debug: Add braces around empty body in an 'if' statement

Submitter:  Axel Lin <axellin>
Submitted:  Tue 09 Aug 2016 03:27:30 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  goldsimon Open/Closed:  Closed
Planned Release:  None

Tue 09 Aug 2016 07:53:09 PM UTC, comment #1: 

Committed. Thanks for the patch.

Simon Goldschmidt <goldsimon>
Group administrator
Tue 09 Aug 2016 03:27:30 AM UTC, original submission:  

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.

Axel Lin <axellin>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by axellin (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-08-09 goldsimon StatusNone Done
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2016-08-09 axellin Attached File- Added 0001-debug-Add-braces-around-empty-body-in-an-if-statemen.patch, #38152

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code