Skip to content

Avoid implicit fallthrough warnings #22

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hartzell
Copy link

Newer gcc's warn/error on the implicit fallthough.

Add a break to make the intent clear.

This was also mentioned in #14.

Newer gcc's warn/error on the implicit fallthough.

Add a break to make the intent clear.
hartzell pushed a commit to hartzell/spack that referenced this pull request Dec 31, 2018
There's a missing break in a switch statement that newer gcc's
dislike.

Our spack#4696 simply disallowed newer gcc's.

This fixes the problem instead.

It's been [PR'ed upstream](agordon/fastx_toolkit#22).

Tested with [email protected] and [email protected] on CentOS.
adamjstewart pushed a commit to spack/spack that referenced this pull request Dec 31, 2018
There's a missing break in a switch statement that newer gcc's
dislike.

Our #4696 simply disallowed newer gcc's.

This fixes the problem instead.

It's been [PR'ed upstream](agordon/fastx_toolkit#22).

Tested with [email protected] and [email protected] on CentOS.
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.

1 participant