From c914afdbf1a81f5ae69c3784588a012983d7a062 Mon Sep 17 00:00:00 2001 From: Michael Krasnyk Date: Fri, 30 Jun 2017 12:46:43 +0200 Subject: [PATCH] Fix missing-field-initializers warnings in PackedVector --- include/util/packed_vector.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/util/packed_vector.hpp b/include/util/packed_vector.hpp index 8d4672f1e..25d26db44 100644 --- a/include/util/packed_vector.hpp +++ b/include/util/packed_vector.hpp @@ -108,7 +108,7 @@ template class Pack // C++14 does not allow operator[] to be constexpr, this is fixed in C++17. static /* constexpr */ std::array initialize_lower_mask() { - std::array lower_mask{}; + std::array lower_mask; const WordT mask = (1ULL << Bits) - 1; auto offset = 0; @@ -124,7 +124,7 @@ template class Pack static /* constexpr */ std::array initialize_upper_mask() { - std::array upper_mask{}; + std::array upper_mask; const WordT mask = (1ULL << Bits) - 1; auto offset = 0; @@ -148,7 +148,7 @@ template class Pack static /* constexpr */ std::array initialize_lower_offset() { - std::array lower_offset{}; + std::array lower_offset; auto offset = 0; for (auto element_index = 0u; element_index < BLOCK_ELEMENTS; element_index++) @@ -163,7 +163,7 @@ template class Pack static /* constexpr */ std::array initialize_upper_offset() { - std::array upper_offset{}; + std::array upper_offset; auto offset = 0; for (auto element_index = 0u; element_index < BLOCK_ELEMENTS; element_index++) @@ -186,7 +186,7 @@ template class Pack static /* constexpr */ std::array initialize_word_offset() { - std::array word_offset{}; + std::array word_offset; auto offset = 0; for (auto element_index = 0u; element_index < BLOCK_ELEMENTS; element_index++)