diff --git a/src/util/sharing_node.h b/src/util/sharing_node.h index ab74840853a..88a7a53b042 100644 --- a/src/util/sharing_node.h +++ b/src/util/sharing_node.h @@ -43,7 +43,7 @@ Author: Daniel Poetzl #define SN_ASSERT_USE(v, b) SN_ASSERT(b) #else #define SN_ASSERT(b) -#define SN_ASSERT_USE(v, b) v = v; +#define SN_ASSERT_USE(v, b) static_cast(v); #endif // clang-format off