diff --git a/src/query/v2/multiframe.cpp b/src/query/v2/multiframe.cpp index 74ccf8478..41ac7c6ed 100644 --- a/src/query/v2/multiframe.cpp +++ b/src/query/v2/multiframe.cpp @@ -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}; }