From 4b66c6d15caa594666776b297532e2e5cecd8bef Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 4 Mar 2024 03:12:26 +0100 Subject: compat/prelude: workaround spurious error shown in CLion --- compat/prelude.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'compat') diff --git a/compat/prelude.hpp b/compat/prelude.hpp index 4f76fae8..0aad3dbd 100644 --- a/compat/prelude.hpp +++ b/compat/prelude.hpp @@ -1,4 +1,9 @@ #pragma once + +#if defined __clang__ && defined __CLION_IDE__ >= 20240100 +#define CORRADE_ASSUME __attribute__((assume(condition))) +#endif + #include "integer-types.hpp" #include "move.hpp" #include -- cgit v1.2.3