Skip to content

Commit 5c11eb7

Browse files
authored
Merge pull request #2245 from mgudemann/fix/warning/clang_self_assign
Fix clang++'s warning about self-assign
2 parents f7e5fb5 + 4bb1bf0 commit 5c11eb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/sharing_node.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Author: Daniel Poetzl
4343
#define SN_ASSERT_USE(v, b) SN_ASSERT(b)
4444
#else
4545
#define SN_ASSERT(b)
46-
#define SN_ASSERT_USE(v, b) v = v;
46+
#define SN_ASSERT_USE(v, b) static_cast<void>(v);
4747
#endif
4848

4949
// clang-format off

0 commit comments

Comments
 (0)