From db4e7df7a7a523a0e79ea97983ff28fb4c3ae439 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 5 Oct 2023 14:10:11 +0200 Subject: compat/assert: workaround clangd warning --- compat/assert.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/compat/assert.hpp b/compat/assert.hpp index c406009a..8cbb55be 100644 --- a/compat/assert.hpp +++ b/compat/assert.hpp @@ -1,4 +1,5 @@ #pragma once +#include #include #include @@ -26,10 +27,7 @@ #define FM_KILL_PRINTF_WARN_2() #endif -#define fm_EMIT_ABORT() \ - *(volatile int*)nullptr = 0; \ - for (;;) \ - ; +#define fm_EMIT_ABORT() ::std::abort(); #define fm_EMIT_DEBUG2(pfx, ...) \ do { \ -- cgit v1.2.3