Add statement to ignroe clang warning

This commit is contained in:
jeremy 2022-12-01 14:19:41 +01:00
parent 23bfd7f4fc
commit 00fd69c170

View File

@ -62,8 +62,8 @@ void MultiFrame::DefragmentValidFrames() noexcept {
in the range in such a way that the elements that are not to be removed appear in the beginning of the range.
Relative order of the elements that remain is preserved and the physical size of the container is unchanged."
*/
[[maybe_unused]] const auto it =
std::remove_if(frames_.begin(), frames_.end(), [](auto &frame) { return !frame.IsValid(); });
// NOLINTNEXTLINE (bugprone-unused-return-value)
std::remove_if(frames_.begin(), frames_.end(), [](auto &frame) { return !frame.IsValid(); });
}
ValidFramesReader MultiFrame::GetValidFramesReader() { return ValidFramesReader{*this}; }