On 11/20/20 12:28, Joe Perches wrote: > On Fri, 2020-11-20 at 12:21 -0600, Gustavo A. R. Silva wrote: >> Hi all, >> >> This series aims to fix almost all remaining fall-through warnings in >> order to enable -Wimplicit-fallthrough for Clang. >> >> In preparation to enable -Wimplicit-fallthrough for Clang, explicitly >> add multiple break/goto/return/fallthrough statements instead of just >> letting the code fall through to the next case. >> >> Notice that in order to enable -Wimplicit-fallthrough for Clang, this >> change[1] is meant to be reverted at some point. So, this patch helps >> to move in that direction. > > This was a bit hard to parse for a second or three. > > Thanks Gustavo. > > How was this change done? I audited case by case in order to determine the best fit for each situation. Depending on the surrounding logic, sometimes it makes more sense a goto or a fallthrough rather than merely a break. Thanks -- Gustavo -- dm-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/dm-devel
- Re: [dm-devel] [Intel-wired-... Nick Desaulniers
- Re: [dm-devel] [Intel-wired-... Kees Cook
- Re: [dm-devel] [PATCH 000/141] F... Jakub Kicinski
- Re: [dm-devel] [PATCH 000/141] F... Kees Cook
- Re: [dm-devel] [PATCH 000/14... Edward Cree
- Re: [dm-devel] [PATCH 000/141] Fix fa... Dan Carpenter
- Re: [dm-devel] [PATCH 000/141] Fix fa... Dan Carpenter
- Re: [dm-devel] [PATCH 000/141] Fix fall-t... Kees Cook
- Re: [dm-devel] [PATCH 000/141] Fix fall-through warnin... Miguel Ojeda
- Re: [dm-devel] [PATCH 000/141] Fix fall-through warnin... Joe Perches
- Re: [dm-devel] [PATCH 000/141] Fix fall-through w... Gustavo A. R. Silva
- Re: [dm-devel] [PATCH 000/141] Fix fall-through warnin... Jason Gunthorpe
- Re: [dm-devel] [PATCH 000/141] Fix fall-through w... Gustavo A. R. Silva
- Re: [dm-devel] [PATCH 000/141] Fix fall-through warnin... Mark Brown
- Re: [dm-devel] [PATCH 000/141] Fix fall-through w... Gustavo A. R. Silva
- Re: [dm-devel] [PATCH 000/141] Fix fall-through warnin... Martin K. Petersen
- Re: [dm-devel] [PATCH 000/141] Fix fall-through w... Gustavo A. R. Silva
- Re: [dm-devel] (subset) [PATCH 000/141] Fix fall-throu... Martin K. Petersen
