diff --git a/cpp/src/msgpack-c/include/msgpack/assert.hpp b/cpp/src/msgpack-c/include/msgpack/assert.hpp index 0b2d0bcd0c..180e345c7a 100644 --- a/cpp/src/msgpack-c/include/msgpack/assert.hpp +++ b/cpp/src/msgpack-c/include/msgpack/assert.hpp @@ -16,7 +16,7 @@ #include #define MSGPACK_ASSERT assert -#else // defined(MSGPACK_NO_BOOST) +#else // defined(MSGPACK_NO_BOOST) #include #define MSGPACK_ASSERT BOOST_ASSERT @@ -25,15 +25,16 @@ #ifdef __wasm__ struct AbortStream { - void operator<< [[noreturn]] (const auto& error) { - info(error.what()); + void operator<< [[noreturn]] (const auto& error) + { + (void)error; // TODO how to print this? std::abort(); } }; #define THROW AbortStream() << #define try if (true) #define catch(...) if (false) -#define RETHROW +#define RETHROW #else #define THROW throw #define RETHROW THROW