summaryrefslogtreecommitdiff
path: root/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'macros.h')
-rw-r--r--macros.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/macros.h b/macros.h
index 6e3ff1e..dae21ce 100644
--- a/macros.h
+++ b/macros.h
@@ -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 */