From b5ad7c021b259ba3f71cfdbb4a0651c2b84f5036 Mon Sep 17 00:00:00 2001 From: artpaul Date: Sat, 12 Nov 2016 21:03:44 +0500 Subject: [PATCH] fix clang: remove unused variable --- .../DB/Functions/FunctionsMiscellaneous.h | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/dbms/include/DB/Functions/FunctionsMiscellaneous.h b/dbms/include/DB/Functions/FunctionsMiscellaneous.h index dde32298635..5fa63deb58b 100644 --- a/dbms/include/DB/Functions/FunctionsMiscellaneous.h +++ b/dbms/include/DB/Functions/FunctionsMiscellaneous.h @@ -1299,18 +1299,18 @@ private: template void dispatchForSourceType(const IDataType & src_type, F && f) const { - if (auto src_type_concrete = typeid_cast(&src_type)) f(UInt8()); - else if (auto src_type_concrete = typeid_cast(&src_type)) f(UInt16()); - else if (auto src_type_concrete = typeid_cast(&src_type)) f(UInt32()); - else if (auto src_type_concrete = typeid_cast(&src_type)) f(UInt64()); - else if (auto src_type_concrete = typeid_cast(&src_type)) f(Int8()); - else if (auto src_type_concrete = typeid_cast(&src_type)) f(Int16()); - else if (auto src_type_concrete = typeid_cast(&src_type)) f(Int32()); - else if (auto src_type_concrete = typeid_cast(&src_type)) f(Int64()); - else if (auto src_type_concrete = typeid_cast(&src_type)) f(Float32()); - else if (auto src_type_concrete = typeid_cast(&src_type)) f(Float64()); - else if (auto src_type_concrete = typeid_cast(&src_type)) f(DataTypeDate::FieldType()); - else if (auto src_type_concrete = typeid_cast(&src_type)) f(DataTypeDateTime::FieldType()); + if (typeid_cast(&src_type)) f(UInt8()); + else if (typeid_cast(&src_type)) f(UInt16()); + else if (typeid_cast(&src_type)) f(UInt32()); + else if (typeid_cast(&src_type)) f(UInt64()); + else if (typeid_cast(&src_type)) f(Int8()); + else if (typeid_cast(&src_type)) f(Int16()); + else if (typeid_cast(&src_type)) f(Int32()); + else if (typeid_cast(&src_type)) f(Int64()); + else if (typeid_cast(&src_type)) f(Float32()); + else if (typeid_cast(&src_type)) f(Float64()); + else if (typeid_cast(&src_type)) f(DataTypeDate::FieldType()); + else if (typeid_cast(&src_type)) f(DataTypeDateTime::FieldType()); else throw Exception("Argument for function " + getName() + " must have numeric type.", ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT);