Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings-as-errors. #5409

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft

Fix warnings-as-errors. #5409

wants to merge 1 commit into from

Conversation

teo-tsirpanis
Copy link
Member

Fixes #5389.


TYPE: NO_HISTORY

FilterBuffer::BufferOrView::BufferOrView(BufferOrView&& other) {
underlying_buffer_.swap(other.underlying_buffer_);
view_.swap(other.view_);
std::swap(is_view_, other.is_view_);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We were accessing is_view_ while unititialized. A default move constructor suffices here.

@@ -85,9 +87,7 @@ FilterPipeline::FilterPipeline(
max_chunk_size_ = other.max_chunk_size_;
}

FilterPipeline::FilterPipeline(FilterPipeline&& other) {
swap(other);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same problem as before. The compiler looked through swap and saw uninitialized member access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The Release failed job failed on Wednesday (2024-11-27)
1 participant