Skip to content
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

Nuttx GCC7: enable -Wimplicit-fallthrough #8583

Closed

Conversation

jlecoeur
Copy link
Contributor

@jlecoeur jlecoeur commented Jan 4, 2018

Re-enable implicit fallthrough (with default level 3) warning in #8551

I tried various warning levels but they seem ineffective in the docker image.

I replaced the comments /* FALLTHROUGH */ by attributes [[fallthrough]] in C++ files, and by __attribute__((fallthrough)) in two C files.

@jlecoeur jlecoeur requested a review from dagar January 4, 2018 15:47
@dagar
Copy link
Member

dagar commented Jan 4, 2018

This is a bit obnoxious given the "one compiler version only" discussion we just had, but can we do this without blatantly breaking old GCC (at least for a transition period)?

@jlecoeur
Copy link
Contributor Author

jlecoeur commented Jan 4, 2018

Ahah that is a side effect I did not forecast!

Let's forget about this PR and try to fix the gcc install in the docker image.

(...or let's use a macro that checks the compiler version... no let's not do that)

@jlecoeur jlecoeur closed this Jan 5, 2018
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