On Tue, Jul 30, 2019 at 10:35:18PM -0700, Joe Perches wrote: > Reserve the pseudo keyword 'fallthrough' for the ability to convert the > various case block /* fallthrough */ style comments to appear to be an > actual reserved word with the same gcc case block missing fallthrough > warning capability. > > All switch/case blocks now must end in one of: > > break; > fallthrough; > goto <label>; > return [expression]; > > fallthough is gcc's __attribute__((__fallthrough__)) which was introduced > in gcc version 7.. > > fallthrough devolves to an empty "do {} while (0)" if the compiler version > (any version less than gcc 7) does not support the attribute. > > Signed-off-by: Joe Perches <j...@perches.com>
_MUCH_ better than that silly comment, thanks for doing this! Acked-by: Peter Zijlstra (Intel) <pet...@infradead.org>