summaryrefslogtreecommitdiff
path: root/include/assert.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-12-03 15:11:23 +0100
committerRichard Braun <rbraun@sceen.net>2017-12-03 15:11:23 +0100
commitc7d2507fc455421429a531d722947ab415259c77 (patch)
tree52609a956ec9e3bd1f1274aa9d799597866bfcd1 /include/assert.h
parent303ed5305f8dae17ab46aa1e0dc6086d4277808c (diff)
Revert "Make assert have no side effects"
This reverts commit d18d0e85596f90e0bd597b33d58209d0b3973c95.
Diffstat (limited to 'include/assert.h')
-rw-r--r--include/assert.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/assert.h b/include/assert.h
index 9bf3bdf0..8fdc2fe2 100644
--- a/include/assert.h
+++ b/include/assert.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010-2017 Richard Braun.
+ * Copyright (c) 2010 Richard Braun.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@
#define static_assert _Static_assert
#ifdef NDEBUG
-#define assert(expression)
+#define assert(expression) ((void)(expression))
#else /* NDEBUG */
#include <kern/macros.h>