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

Make a compile error while facing unused variables #1854

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

PragmaTwice
Copy link
Member

To prevent further bugs, we can make it fail to compile while facing unused variables.

@mapleFU
Copy link
Member

mapleFU commented Oct 24, 2023

Have it found some already exists unused variables bug?

@PragmaTwice PragmaTwice merged commit 7598e8d into apache:unstable Oct 24, 2023
28 checks passed
@PragmaTwice
Copy link
Member Author

Have it found some already exists unused variables bug?

See #1853.

@banlilin
Copy link

The following error is reported when building version 2.7:

kvrocks/src/cluster/cluster.cc:537:22: error: unused variable ‘’ [-Werror=unused-variable]
for (auto &[
, info] : slots_infos) {

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.

5 participants