From 4bb1bf099067f65638c41073d4bfebe197519197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=BCdemann?= Date: Tue, 29 May 2018 11:03:31 +0200 Subject: [PATCH] Fix clang++'s warning about self-assign --- src/util/sharing_node.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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