diff --git a/include/opendht/dht_proxy_client.h b/include/opendht/dht_proxy_client.h index aacc2fca..f7a3b47c 100644 --- a/include/opendht/dht_proxy_client.h +++ b/include/opendht/dht_proxy_client.h @@ -49,6 +49,8 @@ public: virtual void setPushNotificationToken(const std::string& token) { #ifdef OPENDHT_PUSH_NOTIFICATIONS deviceKey_ = token; +#else + (void) token; #endif } diff --git a/src/dht_proxy_client.cpp b/src/dht_proxy_client.cpp index eb36df63..1c8f0b37 100644 --- a/src/dht_proxy_client.cpp +++ b/src/dht_proxy_client.cpp @@ -1037,6 +1037,8 @@ DhtProxyClient::pushNotificationReceived(const std::mapforwardAllMessages(forward); +#else + (void) forward; #endif // OPENDHT_PROXY_SERVER } @@ -1089,6 +1091,8 @@ DhtRunner::setPushNotificationToken(const std::string& token) { pushToken_ = token; if (dht_via_proxy_) dht_via_proxy_->setPushNotificationToken(token); +#else + (void) token; #endif } @@ -1104,6 +1108,8 @@ DhtRunner::pushNotificationReceived(const std::map& da }); } cv.notify_all(); +#else + (void) data; #endif }