mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
Fixed warning [#CLICKHOUSE-2]
This commit is contained in:
parent
9de268a455
commit
317807f03d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user