diff options
Diffstat (limited to 'macros.h')
-rw-r--r-- | macros.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -86,4 +86,12 @@ #define __packed __attribute__((packed)) #endif +/* + * XXX Suppress warnings caused by some implementations of assert(). + */ +#ifdef NDEBUG +#undef assert +#define assert(x) ((void)(x)) +#endif /* NDEBUG */ + #endif /* _MACROS_H */ |