Skip to content

Commit

Permalink
test: fix unused function warnings due to explicit template instantia…
Browse files Browse the repository at this point in the history
…tion

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
  • Loading branch information
Jason Dillaman committed Feb 14, 2017
1 parent 953ae19 commit 16ddb47
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/test/librbd/operation/test_mock_Request.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ struct AsyncRequest<librbd::MockTestImageCtx> {
} // namespace librbd

#include "librbd/operation/Request.cc"
template class librbd::operation::Request<librbd::MockTestImageCtx>;

namespace librbd {
namespace journal {
Expand Down
2 changes: 0 additions & 2 deletions src/test/librbd/test_mock_AioImageRequest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ AioObjectRead<librbd::MockTestImageCtx>* AioObjectRead<librbd::MockTestImageCtx>

#include "librbd/AioImageRequest.cc"

template class librbd::AioImageRequest<librbd::MockTestImageCtx>;

namespace librbd {

using ::testing::_;
Expand Down
1 change: 0 additions & 1 deletion src/test/librbd/test_mock_ExclusiveLock.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ struct PreReleaseRequest<MockExclusiveLockImageCtx> : public BaseRequest<PreRele

// template definitions
#include "librbd/ExclusiveLock.cc"
template class librbd::ExclusiveLock<librbd::MockExclusiveLockImageCtx>;

ACTION_P(FinishLockUnlock, request) {
if (request->on_lock_unlock != nullptr) {
Expand Down
1 change: 0 additions & 1 deletion src/test/rbd_mirror/test_mock_LeaderWatcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ struct ManagedLock<MockTestImageCtx> {

// template definitions
#include "tools/rbd_mirror/LeaderWatcher.cc"
template class rbd::mirror::LeaderWatcher<librbd::MockTestImageCtx>;

namespace rbd {
namespace mirror {
Expand Down

0 comments on commit 16ddb47

Please sign in to comment.