From f92cc479d82fbf85591d8918bbf469c4b329c31c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 3 Oct 2021 08:02:57 -0700 Subject: Silence some static analysis warnings --- al/filter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'al/filter.cpp') diff --git a/al/filter.cpp b/al/filter.cpp index 21a8fee7..1753580e 100644 --- a/al/filter.cpp +++ b/al/filter.cpp @@ -355,10 +355,10 @@ ALfilter *AllocFilter(ALCdevice *device) { auto sublist = std::find_if(device->FilterList.begin(), device->FilterList.end(), [](const FilterSubList &entry) noexcept -> bool - { return entry.FreeMask != 0; } - ); + { return entry.FreeMask != 0; }); auto lidx = static_cast(std::distance(device->FilterList.begin(), sublist)); auto slidx = static_cast(al::countr_zero(sublist->FreeMask)); + ASSUME(slidx < 64); ALfilter *filter{::new(sublist->Filters + slidx) ALfilter{}}; InitFilterParams(filter, AL_FILTER_NULL); -- cgit v1.2.3