From 96abbebd5b17d1b256a0d6f620d1d81c88bfcaf9 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 21 Mar 2024 17:55:53 -0400 Subject: [PATCH] static_vector.h:29:17: error: writing 10 bytes into a region of size 0 [-Werror=stringop-overflow=] #6270 touching template randomly --- firmware/util/containers/static_vector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/util/containers/static_vector.h b/firmware/util/containers/static_vector.h index ca3fc88bce..6802cdb0ba 100644 --- a/firmware/util/containers/static_vector.h +++ b/firmware/util/containers/static_vector.h @@ -24,7 +24,7 @@ struct static_vector { return nullptr; } - auto& location = m_storage[m_size]; + T& location = m_storage[m_size]; location = value; m_size++;