From: Casey Bodley Date: Sat, 13 Apr 2019 17:06:23 +0000 (-0400) Subject: rgw: silence a -Wunused-function warning in pubsub X-Git-Tag: v15.1.0~2933^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=59b9dad1a3f892e1ae29da5894b76b45baf2bc7a;p=ceph.git rgw: silence a -Wunused-function warning in pubsub Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_sync_module_pubsub_rest.cc b/src/rgw/rgw_sync_module_pubsub_rest.cc index 0d781bd4eb48..1c52d159136f 100644 --- a/src/rgw/rgw_sync_module_pubsub_rest.cc +++ b/src/rgw/rgw_sync_module_pubsub_rest.cc @@ -771,7 +771,7 @@ std::string topic_to_unique(const std::string& topic, const std::string& notific } // extract the topic from a unique topic of the form: _ -std::string unique_to_topic(const std::string& unique_topic, const std::string& notification) { +[[maybe_unused]] std::string unique_to_topic(const std::string& unique_topic, const std::string& notification) { if (unique_topic.find(notification + "_") == string::npos) { return ""; }