This commit is contained in:
OmarBazaraa 2021-08-02 15:16:39 +00:00
parent 91928fdf5a
commit 71e1c82f87

View File

@ -3,7 +3,6 @@
#include <Common/Exception.h> #include <Common/Exception.h>
#if !defined(ARCADIA_BUILD) #if !defined(ARCADIA_BUILD)
# include "config_core.h"
# include <Common/config.h> # include <Common/config.h>
#endif #endif
@ -14,14 +13,6 @@
# include <Poco/Net/SecureStreamSocket.h> # include <Poco/Net/SecureStreamSocket.h>
#endif #endif
#ifdef __clang__
# pragma clang diagnostic ignored "-Wunused-parameter"
#endif
#if USE_EMBEDDED_COMPILER
# pragma GCC diagnostic ignored "-Wunused-parameter"
#endif
namespace DB namespace DB
{ {
@ -47,7 +38,7 @@ Poco::Net::StreamSocket StorageMongoDBSocketFactory::createPlainSocket(const std
} }
Poco::Net::StreamSocket StorageMongoDBSocketFactory::createSecureSocket(const std::string & host, int port, Poco::Timespan connectTimeout) Poco::Net::StreamSocket StorageMongoDBSocketFactory::createSecureSocket(const std::string & host [[maybe_unused]], int port [[maybe_unused]], Poco::Timespan connectTimeout [[maybe_unused]])
{ {
#if USE_SSL #if USE_SSL
Poco::Net::SocketAddress address(host, port); Poco::Net::SocketAddress address(host, port);