diff options
| author | fsub <31548809+fsub@users.noreply.github.com> | 2017-10-19 22:20:44 +0200 |
|---|---|---|
| committer | fsub <31548809+fsub@users.noreply.github.com> | 2017-10-19 22:20:44 +0200 |
| commit | a70128a4cf2595a66f54175d2425ae96d14d1b75 (patch) | |
| tree | bcdb2f00775f6d64ad77147aa0595b337a80ebc2 /src/assert.hh | |
| parent | 3484d7f7757725670124b4fbc4137000ef52a4dc (diff) | |
Avoid some warnings in optimized builds
Diffstat (limited to 'src/assert.hh')
| -rw-r--r-- | src/assert.hh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
