diff --git a/src/utils/PastisAssert.hpp b/src/utils/PastisAssert.hpp index ea92e3175fbbb1c28763b684ea09167c18489cb3..90cfe15995f4c94460e4da4bc042f3a680496e08 100644 --- a/src/utils/PastisAssert.hpp +++ b/src/utils/PastisAssert.hpp @@ -47,9 +47,8 @@ class AssertError #ifdef NDEBUG -#warning check that this test does not degrade performaces -#define Assert(assertion) \ - if (not (assertion)) false; +// Useless test is there to check syntax even in optimized mode. Costs nothing. +#define Assert(assertion) if (not (assertion)) {} #else // NDEBUG