From 317807f03d7e3b96b3ebc8a4ed5bc4c81f72fabe Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 16 Jul 2018 09:08:39 +0300 Subject: [PATCH] Fixed warning [#CLICKHOUSE-2] --- dbms/src/IO/ReadHelpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbms/src/IO/ReadHelpers.cpp b/dbms/src/IO/ReadHelpers.cpp index fce29b31584..28240bc78d0 100644 --- a/dbms/src/IO/ReadHelpers.cpp +++ b/dbms/src/IO/ReadHelpers.cpp @@ -255,7 +255,7 @@ static ReturnType parseJSONEscapeSequence(Vector & s, ReadBuffer & buf) { static constexpr bool throw_exception = std::is_same_v; - 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; - auto error = [](const char * message, int code) + auto error = [](const char * message [[maybe_unused]], int code) { if constexpr (throw_exception) throw Exception(message, code);