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

Summary: Fallthrough warnings gcc-7
Product: SDL Reporter: Martin Gerhardy <martin.gerhardy>
Component: buildAssignee: Sam Lantinga <slouken>
Status: WAITING --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: All   
Attachments: gcc 7 fallthrough warnings

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.