Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deanberris merged 1 commit intocpp-netlib:0.13-releasefromanonimal:0.13-release
Oct 17, 2017

Conversation

anonimal
Copy link

Fromhttps://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.

Fromhttps://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html:>C++17 provides a standard way to suppress the -Wimplicit-fallthroughwarning using [[fallthrough]]; instead of the GNU attribute. In C++11 orC++14 users can use [[gnu::fallthrough]];, which is a GNU extension.Instead of these attributes, it is also possible to add a fallthroughcomment to silence the warning.
@anonimal
Copy link
Author

@deanberris@glynos ?

@deanberrisdeanberris self-requested a reviewOctober 17, 2017 13:57
@deanberrisdeanberris self-assigned thisOct 17, 2017
@deanberris
Copy link
Member

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

@deanberrisdeanberris merged commit7ab74c5 intocpp-netlib:0.13-releaseOct 17, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@deanberrisdeanberrisAwaiting requested review from deanberris

Assignees

@deanberrisdeanberris

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@anonimal@deanberris

[8]ページ先頭

©2009-2025 Movatter.jp