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
317807f03d
commit
6ba5b3bd82
@ -255,7 +255,7 @@ static ReturnType parseJSONEscapeSequence(Vector & s, ReadBuffer & buf)
|
|||||||
{
|
{
|
||||||
static constexpr bool throw_exception = std::is_same_v<ReturnType, void>;
|
static constexpr bool throw_exception = std::is_same_v<ReturnType, void>;
|
||||||
|
|
||||||
auto error = [](const char * message [[maybe_unused]], int code)
|
auto error = [](const char * message [[maybe_unused]], int code [[maybe_unused]])
|
||||||
{
|
{
|
||||||
if constexpr (throw_exception)
|
if constexpr (throw_exception)
|
||||||
throw Exception(message, code);
|
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>;
|
static constexpr bool throw_exception = std::is_same_v<ReturnType, void>;
|
||||||
|
|
||||||
auto error = [](const char * message [[maybe_unused]], int code)
|
auto error = [](const char * message [[maybe_unused]], int code [[maybe_unused]])
|
||||||
{
|
{
|
||||||
if constexpr (throw_exception)
|
if constexpr (throw_exception)
|
||||||
throw Exception(message, code);
|
throw Exception(message, code);
|
||||||
|
Loading…
Reference in New Issue
Block a user