proxy: mute unused variable warning if disabled

This commit is contained in:
Adrien Béraud committed 2019-04-13 23:02:57 -04:00
1 parent 15da502354
commit af940c63b1
3 files changed
+13

No files matched your search

+5
View File
@@ -1037,6 +1037,8 @@ DhtProxyClient::pushNotificationReceived(const std::map<std::string, std::string
} catch (const std::exception& e) {
DHT_LOG.e("Error handling push notification: %s", e.what());
}
#else
(void) notification;
#endif
}
@@ -1066,6 +1068,9 @@ DhtProxyClient::resubscribe(const InfoHash& key, Listener& listener)
listener.thread = std::thread([this, req, vcb, filter, state]() {
sendListen(req, vcb, filter, state, ListenMethod::RESUBSCRIBE);
});
#else
(void) key;
(void) listener;
#endif
}