gcc-4.9.2: compilation fix

This commit is contained in:
Pavel Kartavyy 2015-09-23 18:03:08 +03:00
parent aee3f9a868
commit d1bd09246d
3 changed files with 2 additions and 3 deletions

View File

@ -264,7 +264,7 @@ private:
case AttributeUnderlyingType::Float64: createAttributeImpl<Float64>(attr, null_value); break;
case AttributeUnderlyingType::String:
{
const auto & null_value_ref = std::get<String>(attr.null_values) = null_value.get<String>();
std::get<String>(attr.null_values) = null_value.get<String>();
std::get<std::unique_ptr<HashMap<UInt64, StringRef>>>(attr.maps) =
std::make_unique<HashMap<UInt64, StringRef>>();
attr.string_arena = std::make_unique<Arena>();

View File

@ -286,7 +286,7 @@ private:
case AttributeUnderlyingType::Float64: createAttributeImpl<Float64>(attr, null_value); break;
case AttributeUnderlyingType::String:
{
const auto & null_value_ref = std::get<String>(attr.null_values) = null_value.get<String>();
std::get<String>(attr.null_values) = null_value.get<String>();
std::get<ptr_t<StringRef>>(attr.maps) = std::make_unique<collection_t<StringRef>>();
attr.string_arena = std::make_unique<Arena>();
break;

View File

@ -234,7 +234,6 @@ void LogicalExpressionsOptimizer::cleanupOrExpressions()
garbage_map.reserve(processed_count);
for (const auto & chain : disjunctive_equality_chains_map)
{
const auto & equalities = chain.second;
if (!chain.second.is_processed)
continue;