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

GH-41891: [C++] Clean up implicit fallthrough warnings #41892

Merged
merged 6 commits into from
Oct 2, 2024

Conversation

WillAyd
Copy link
Contributor

@WillAyd WillAyd commented May 30, 2024

Rationale for this change

Helps clean up warnings, and at least one of these looks like a subtle bug that may confuse developers

What changes are included in this PR?

Added break statements where case statements were previously falling through

Are these changes tested?

Builds cleanly

Are there any user-facing changes?

No

Copy link

⚠️ GitHub issue #41891 has been automatically assigned in GitHub to PR creator.

@pitrou
Copy link
Member

pitrou commented Sep 18, 2024

I'm curious, why did you close this PR?

@WillAyd
Copy link
Contributor Author

WillAyd commented Sep 18, 2024

Not sure - happy to reopen and take another look if there is interest in it

@pitrou
Copy link
Member

pitrou commented Sep 18, 2024

It's probably a desirable even though minor cleanup.

@WillAyd WillAyd restored the more-warning-cleanups branch September 19, 2024 00:07
@WillAyd WillAyd reopened this Sep 19, 2024
@WillAyd
Copy link
Contributor Author

WillAyd commented Oct 2, 2024

@pitrou do we need to run this through crossbow or is it good as is?

@pitrou
Copy link
Member

pitrou commented Oct 2, 2024

Since we're nearing a release, let's do a Crossbow run :-)

@pitrou
Copy link
Member

pitrou commented Oct 2, 2024

@github-actions crossbow submit -g cpp

@pitrou
Copy link
Member

pitrou commented Oct 2, 2024

@github-actions crossbow submit wheelcp312

Copy link

github-actions bot commented Oct 2, 2024

Revision: 53ac63e

Submitted crossbow builds: ursacomputing/crossbow @ actions-9bcc922651

Task Status
example-cpp-minimal-build-static GitHub Actions
example-cpp-minimal-build-static-system-dependency GitHub Actions
example-cpp-tutorial GitHub Actions
test-alpine-linux-cpp GitHub Actions
test-build-cpp-fuzz GitHub Actions
test-conda-cpp GitHub Actions
test-conda-cpp-valgrind GitHub Actions
test-cuda-cpp-ubuntu-20.04-cuda-11.2.2 GitHub Actions
test-cuda-cpp-ubuntu-22.04-cuda-11.7.1 GitHub Actions
test-debian-12-cpp-amd64 GitHub Actions
test-debian-12-cpp-i386 GitHub Actions
test-fedora-39-cpp GitHub Actions
test-ubuntu-20.04-cpp GitHub Actions
test-ubuntu-20.04-cpp-bundled GitHub Actions
test-ubuntu-22.04-cpp GitHub Actions
test-ubuntu-22.04-cpp-20 GitHub Actions
test-ubuntu-22.04-cpp-emscripten GitHub Actions
test-ubuntu-22.04-cpp-no-threading GitHub Actions
test-ubuntu-24.04-cpp GitHub Actions
test-ubuntu-24.04-cpp-gcc-13-bundled GitHub Actions
test-ubuntu-24.04-cpp-gcc-14 GitHub Actions
test-ubuntu-24.04-cpp-minimal-with-formats GitHub Actions
test-ubuntu-24.04-cpp-thread-sanitizer GitHub Actions

Copy link

github-actions bot commented Oct 2, 2024

Revision: 53ac63e

Submitted crossbow builds: ursacomputing/crossbow @ actions-f6fb796edd

Task Status
wheel-macos-monterey-cp312-cp312-arm64 GitHub Actions
wheel-macos-ventura-cp312-cp312-amd64 GitHub Actions
wheel-manylinux-2-28-cp312-cp312-amd64 GitHub Actions
wheel-manylinux-2-28-cp312-cp312-arm64 GitHub Actions
wheel-manylinux-2014-cp312-cp312-amd64 GitHub Actions
wheel-manylinux-2014-cp312-cp312-arm64 GitHub Actions
wheel-windows-cp312-amd64 GitHub Actions

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Oct 2, 2024
@pitrou
Copy link
Member

pitrou commented Oct 2, 2024

@WillAyd Do you want to merge this PR? Please make sure you use the merge script, not the GitHub button.

@WillAyd
Copy link
Contributor Author

WillAyd commented Oct 2, 2024

OK sure no problem. So stepping through that, I just need to run

./merge_arrow_pr.sh 41892

right?

@pitrou
Copy link
Member

pitrou commented Oct 2, 2024

Yes!

@WillAyd WillAyd merged commit b8eae60 into apache:main Oct 2, 2024
40 checks passed
@WillAyd WillAyd removed the awaiting committer review Awaiting committer review label Oct 2, 2024
@WillAyd WillAyd deleted the more-warning-cleanups branch October 2, 2024 18:30
Copy link

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit b8eae60.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 12 possible false positives for unstable benchmarks that are known to sometimes produce them.

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

Successfully merging this pull request may close these issues.

2 participants