From 0aaa687971b6aab8365d426999d9e9ba771aa018 Mon Sep 17 00:00:00 2001 From: ludamad Date: Thu, 18 May 2023 14:33:06 -0400 Subject: [PATCH] fix: msgpack error (#456) --- .../cpp/src/msgpack-c/include/msgpack/assert.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/barretenberg/cpp/src/msgpack-c/include/msgpack/assert.hpp b/barretenberg/cpp/src/msgpack-c/include/msgpack/assert.hpp index 0b2d0bcd0c1f..180e345c7a9a 100644 --- a/barretenberg/cpp/src/msgpack-c/include/msgpack/assert.hpp +++ b/barretenberg/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