From 8295b73436d732ec048319c9df08f9ef5800cc35 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Tue, 10 Oct 2017 10:08:12 +0000 Subject: Make sure __ASSERT_VOID_CAST works --- src/debug.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/debug.h b/src/debug.h index e910a25..06ca5cb 100644 --- a/src/debug.h +++ b/src/debug.h @@ -28,6 +28,11 @@ inline void fail_at_msg(bool strict, const char *__file, int __line, const char if (strict) exit(1); } + +# ifndef __ASSERT_VOID_CAST +# define __ASSERT_VOID_CAST (void) +# endif + #if defined NDEBUG #define warning_msg(msg) cerr << "**** WARNING: " << msg << endl; -- cgit v1.2.3