From 59b9dad1a3f892e1ae29da5894b76b45baf2bc7a Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Sat, 13 Apr 2019 13:06:23 -0400 Subject: [PATCH] rgw: silence a -Wunused-function warning in pubsub Signed-off-by: Casey Bodley --- src/rgw/rgw_sync_module_pubsub_rest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ""; } -- 2.47.3