We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3812 - Fallthrough warnings gcc-7
Summary: Fallthrough warnings gcc-7
Status: WAITING
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.0
Hardware: All All
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-10 17:47 UTC by Martin Gerhardy
Modified: 2017-09-11 17:55 UTC (History)
0 users

See Also:


Attachments
gcc 7 fallthrough warnings (66.67 KB, text/plain)
2017-09-10 17:47 UTC, Martin Gerhardy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Gerhardy 2017-09-10 17:47:33 UTC
Created attachment 2922 [details]
gcc 7 fallthrough warnings

There are more warnings as in #3780
Comment 1 Sam Lantinga 2017-09-10 19:54:59 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/93013728e8a3
Comment 2 Martin Gerhardy 2017-09-10 20:05:52 UTC
Looks like this https://hg.libsdl.org/SDL/rev/93013728e8a3 doesn't fix it (for whatever reason)

same is true for DUFFS_LOOP4 fix - maybe due to the fact that it is a macro? I have no idea yet. Will investigate a little bit more. Ideas are welcome.

Btw. thanks for taking care that fast.
Comment 3 Sam Lantinga 2017-09-10 20:30:45 UTC
It works here with gcc 7.2. What version of gcc are you using?
Comment 4 Martin Gerhardy 2017-09-11 05:51:36 UTC
GCC 7.2.0-1 (Debian)
Comment 5 Sam Lantinga 2017-09-11 17:55:03 UTC
Okay, well feel free to submit a patch that works for you.