From a70128a4cf2595a66f54175d2425ae96d14d1b75 Mon Sep 17 00:00:00 2001 From: fsub <31548809+fsub@users.noreply.github.com> Date: Thu, 19 Oct 2017 22:20:44 +0200 Subject: [PATCH 2/2] Avoid some warnings in optimized builds --- src/assert.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assert.hh b/src/assert.hh index 87a1da3e..3d807ea6 100644 --- a/src/assert.hh +++ b/src/assert.hh @@ -23,7 +23,7 @@ void on_assert_failed(const char* message); "\" at " __FILE__ ":" TOSTRING(__LINE__)); \ } while (false) #else - #define kak_assert(...) do {} while(false) + #define kak_assert(...) do { (void)sizeof(__VA_ARGS__); } while(false) #endif