Fixed warning [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-07-16 09:08:39 +03:00
parent 9de268a455
commit 317807f03d

View File

@ -255,7 +255,7 @@ static ReturnType parseJSONEscapeSequence(Vector & s, ReadBuffer & buf)
{
static constexpr bool throw_exception = std::is_same_v<ReturnType, void>;
auto error = [](const char * message, int code)
auto error = [](const char * message [[maybe_unused]], int code)
{
if constexpr (throw_exception)
throw Exception(message, code);
@ -593,7 +593,7 @@ ReturnType readJSONStringInto(Vector & s, ReadBuffer & buf)
{
static constexpr bool throw_exception = std::is_same_v<ReturnType, void>;
auto error = [](const char * message, int code)
auto error = [](const char * message [[maybe_unused]], int code)
{
if constexpr (throw_exception)
throw Exception(message, code);