Skip to content

Build: fix GCC 7 implicit fallthrough warnings #769

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

Merged
merged 1 commit into from
Oct 17, 2017

Conversation

anonimal
Copy link

From https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html:

C++17 provides a standard way to suppress the -Wimplicit-fallthrough
warning using [[fallthrough]]; instead of the GNU attribute. In C++11 or
C++14 users can use [[gnu::fallthrough]];, which is a GNU extension.
Instead of these attributes, it is also possible to add a fallthrough
comment to silence the warning.

From https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html:

>C++17 provides a standard way to suppress the -Wimplicit-fallthrough
warning using [[fallthrough]]; instead of the GNU attribute. In C++11 or
C++14 users can use [[gnu::fallthrough]];, which is a GNU extension.
Instead of these attributes, it is also possible to add a fallthrough
comment to silence the warning.
@anonimal
Copy link
Author

@deanberris @glynos ?

@deanberris deanberris self-requested a review October 17, 2017 13:57
@deanberris deanberris self-assigned this Oct 17, 2017
@deanberris
Copy link
Member

LGTM -- I'm wondering though whether GCC doesn't have an attribute for this instead, like Clang does?

@deanberris deanberris merged commit 7ab74c5 into cpp-netlib:0.13-release Oct 17, 2017
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.

2 participants