From 3b3ba7d6f782b473c87c1691bfd2b0bded302b49 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 27 Jan 2023 20:35:14 +0200 Subject: [PATCH] Avoid false -Warray-bounds positive under mingw32 gcc-12 --- include/boost/unordered/detail/foa.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index b9f588d5..fe3f8876 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1798,6 +1798,7 @@ private: auto pg=arrays.groups+pos; auto mask=pg->match(hash); if(mask){ + BOOST_UNORDERED_ASSUME(arrays.elements != nullptr); auto p=arrays.elements+pos*N; prefetch_elements(p); do{