Skip to content

Conversation

akien-mga
Copy link
Contributor

Just a small cleanup that removes the need for a GCC-specific pragma.

Clang/Emscripten would also generate this warning BTW if -Wimplicit-fallthrough was passed explicitly (it doesn't seem to be enabled by -Wall -Wextra). From a quick test it can be silenced for both GCC and Clang-derived compilers by ignoring -Wimplicit-fallthrough instead of -Wimplicit-fallthrough= (note the trailing =). But here using [[fallthrough]] is IMO better as it makes the intention explicit for all compilers.

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