From: Adam C. Emerson Date: Wed, 4 Oct 2017 14:53:51 +0000 (-0400) Subject: rbd_mirror: Fix overloaded virtual warning in Clang++ X-Git-Tag: v13.0.1~639^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d796bc7a7639c614cb4287e50111b72d09146e9f;p=ceph.git rbd_mirror: Fix overloaded virtual warning in Clang++ Just pull in the original function with a using. Signed-off-by: Adam C. Emerson --- diff --git a/src/tools/rbd_mirror/InstanceWatcher.h b/src/tools/rbd_mirror/InstanceWatcher.h index be90f10e2137..c3cd60500f75 100644 --- a/src/tools/rbd_mirror/InstanceWatcher.h +++ b/src/tools/rbd_mirror/InstanceWatcher.h @@ -31,6 +31,7 @@ template struct Threads; template class InstanceWatcher : protected librbd::Watcher { + using librbd::Watcher::unregister_watch; // Silence overloaded virtual warning public: static void get_instances(librados::IoCtx &io_ctx, std::vector *instance_ids, diff --git a/src/tools/rbd_mirror/LeaderWatcher.h b/src/tools/rbd_mirror/LeaderWatcher.h index 980e2e6826ad..86982fee6763 100644 --- a/src/tools/rbd_mirror/LeaderWatcher.h +++ b/src/tools/rbd_mirror/LeaderWatcher.h @@ -26,6 +26,7 @@ template struct Threads; template class LeaderWatcher : protected librbd::Watcher { + using librbd::Watcher::unregister_watch; // Silence overloaded virtual warning public: struct Listener { virtual ~Listener() {