Skip to content

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