From b5c39bb80ec6ec398c2c55bd6b7d61fef348067c Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Mon, 29 Jul 2024 11:31:34 -0400 Subject: [PATCH] Fix compiler warning in make_initialized_array function --- c++/nda/stdutil/array.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c++/nda/stdutil/array.hpp b/c++/nda/stdutil/array.hpp index c247b03a..61f26a0c 100644 --- a/c++/nda/stdutil/array.hpp +++ b/c++/nda/stdutil/array.hpp @@ -164,7 +164,7 @@ namespace nda::stdutil { template constexpr std::array make_initialized_array(T v) { return [&v](std::index_sequence) { - return std::array{(Is, v)...}; // NOLINT (always v, just a trick to have the pack) + return std::array{((void)Is, v)...}; // NOLINT (always v, just a trick to have the pack) }(std::make_index_sequence{}); }