Skip to content

Commit e9891cc

Browse files
author
Werner Henze
committed
fix checks: unused warning
1 parent 2a2c919 commit e9891cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/pointers_tests.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct NotMovable
3636
NotMovable() = default;
3737
NotMovable(NotMovable&&) = delete;
3838
NotMovable& operator=(NotMovable&&) = delete;
39-
} dummy;
39+
};
4040
template <typename U, typename = void>
4141
static constexpr bool SwapCompilesFor = false;
4242
template <typename U>
@@ -46,3 +46,5 @@ static constexpr bool
4646
static_assert(!SwapCompilesFor<NotMovable>, "!SwapCompilesFor<NotMovable>");
4747

4848
} // namespace
49+
50+
NotMovable unused_not_movable; // To silence unused-warnings (must not be in anonymous namespace)

0 commit comments

Comments
 (0)