-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
MINOR: [C++] Fix compiler warnings in Clang #43278
base: main
Are you sure you want to change the base?
Conversation
Could you open a new issue for this? Could you use our PR template instead of removing it entirely? Could you show how to reproduce this? |
No problem. I should have read the Thanks for the feedback! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we do the same thing to these two members as what we did to MemoStore
, as the changes I proposed?
Of course, this requires some other cleanup too.
Thank you.
@@ -779,9 +779,9 @@ class InputState { | |||
// Hasher for key elements | |||
mutable KeyHasher* key_hasher_; | |||
// Owning node |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Owning node | |
#ifndef NDEBUG | |
// Owning node |
@@ -779,9 +779,9 @@ class InputState { | |||
// Hasher for key elements | |||
mutable KeyHasher* key_hasher_; | |||
// Owning node | |||
AsofJoinNode* node_; | |||
[[maybe_unused]] AsofJoinNode* node_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[[maybe_unused]] AsofJoinNode* node_; | |
AsofJoinNode* node_; |
// Index of this input | ||
size_t index_; | ||
[[maybe_unused]] size_t index_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[[maybe_unused]] size_t index_; | |
size_t index_; | |
#endif |
@zanmato1984 so these two members are only used in debug mode? |
Yes, I think so. |
This PR fixes compiler warnings in Clang.