Skip to content

Avoid implicit fallthrough warnings#22

Open
hartzell wants to merge 1 commit intoagordon:masterfrom
hartzell:fix-fallthrough
Open

Avoid implicit fallthrough warnings#22
hartzell wants to merge 1 commit intoagordon:masterfrom
hartzell:fix-fallthrough

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 gcc@5.5.0 and gcc@8.2.0 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 gcc@5.5.0 and gcc@8.2.0 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