]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: silence a -Wunused-function warning in pubsub
authorCasey Bodley <cbodley@redhat.com>
Sat, 13 Apr 2019 17:06:23 +0000 (13:06 -0400)
committerCasey Bodley <cbodley@redhat.com>
Sat, 13 Apr 2019 17:06:23 +0000 (13:06 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_sync_module_pubsub_rest.cc

index 0d781bd4eb482db375b9d82cf7c4e8a2b91c934a..1c52d159136fbf70fbec5cf2224878408c8973b1 100644 (file)
@@ -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: <notification>_<topic>
-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 "";
   }