From 56fd92b4eb3fd27d8b9b09753927e425cd510c11 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 26 Feb 2018 16:08:36 +0100 Subject: [PATCH] fix -Werror,-Wunused-function Change-Id: Idb339471edf9f80f779b50a124098ab056d1a2fc --- wsd/LOOLWSD.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp index c25241a9d..47a63f428 100644 --- a/wsd/LOOLWSD.cpp +++ b/wsd/LOOLWSD.cpp @@ -195,6 +195,7 @@ static int careerSpanMs = 0; namespace { +#if ENABLE_SUPPORT_KEY inline void shutdownLimitReached(WebSocketHandler& ws) { const std::string error = Poco::format(PAYLOAD_UNAVAILABLE_LIMIT_REACHED, LOOLWSD::MaxDocuments, LOOLWSD::MaxConnections); @@ -213,6 +214,7 @@ inline void shutdownLimitReached(WebSocketHandler& ws) LOG_ERR("Error while shuting down socket on reaching limit: " << ex.what()); } } +#endif inline void infoLimitReached(const WebSocketHandler* ws) {