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 stream_metadata enum -Wint-in-bool-context warning #1349

Merged
merged 1 commit into from
Mar 24, 2023

Conversation

enjoy-binbin
Copy link
Member

There is an warning in the code:

/incubator-kvrocks/src/storage/batch_extractor.cc:89:50: warning: enum constant in boolean context [-Wint-in-bool-context]
   89 |       StreamMetadata stream_metadata(kRedisStream);

This was introduced in #1345

There is an warning in the code:
```
/incubator-kvrocks/src/storage/batch_extractor.cc:89:50: warning: enum constant in boolean context [-Wint-in-bool-context]
   89 |       StreamMetadata stream_metadata(kRedisStream);
```

This was introduced in apache#1345
@git-hulk
Copy link
Member

Good catch, thanks

@git-hulk
Copy link
Member

Thanks @enjoy-binbin and @torwig, merging...

@git-hulk git-hulk merged commit 6e16a4e into apache:unstable Mar 24, 2023
@enjoy-binbin enjoy-binbin deleted the fix_stream_metadata_warning branch March 24, 2023 13:44
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.

3 participants