Ticket #2108: assert.diff

File assert.diff, 419 bytes (added by andreasf, 2 years ago)

proposed patch

  • headers/posix/assert.h

     
    2727    ((assertion) ? (void)0 : __assert_fail(#assertion, __FILE__, __LINE__, __PRETTY_FUNCTION__)) 
    2828 
    2929#else   // NDEBUG 
    30 #   define assert(condition) ; 
     30#   define assert(condition) ((void)0) 
    3131#endif 
    3232 
    3333#endif  /* _ASSERT_H_ */