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 compiler warnings in KQIR and RDB #2303

Merged
merged 2 commits into from
May 11, 2024
Merged

Fix compiler warnings in KQIR and RDB #2303

merged 2 commits into from
May 11, 2024

Conversation

raffertyyu
Copy link
Contributor

According to gcc output, fix two compiler warnings.

src/storage/rdb_ziplist.cc Show resolved Hide resolved
Comment on lines 103 to 105
default:
assert(false);
return false;
Copy link
Member

Choose a reason for hiding this comment

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

Should we elaborate all branches rather than a unreachable "default"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually all branches are covered here, but gcc thought it should have a default branch to cover any unforeseen case.

@PragmaTwice PragmaTwice changed the title Fix two compiler warnings. Fix compiler warnings in KQIR and RDB May 8, 2024
@git-hulk
Copy link
Member

The CI failure is not related to this PR, will take a look later.

Copy link

sonarcloud bot commented May 11, 2024

@mapleFU mapleFU merged commit b2347f3 into apache:unstable May 11, 2024
31 checks passed
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.

4 participants