summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-09-02 00:53:33 +0200
committerRichard Braun <rbraun@sceen.net>2017-09-02 00:59:53 +0200
commitcf5a5cbed531777bddbf55c4385902cb4331918e (patch)
treebe4ca2b290b9a1ba5c06568bee9145fe4fb2a472
parent3fc1083c811d6a9e7fa6c816719cf8fc0577aa0f (diff)
macros: remove redefinition of assert with side effects
Having side effects in assert is just not a good idea.
-rw-r--r--macros.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/macros.h b/macros.h
index f6d69d9..d084c1d 100644
--- a/macros.h
+++ b/macros.h
@@ -90,12 +90,4 @@
#define __unused __attribute__((unused))
#endif
-/*
- * XXX Suppress warnings caused by some implementations of assert().
- */
-#ifdef NDEBUG
-#undef assert
-#define assert(x) ((void)(x))
-#endif /* NDEBUG */
-
#endif /* _MACROS_H */