Re: [dpdk-dev] [RFC] use Gcc/Clang fallthrough attribute

2019-11-12 Thread Bruce Richardson
On Mon, Nov 11, 2019 at 11:28:03AM -0800, Stephen Hemminger wrote: > Use an explicit statement fallthrough attibute, rather than relying on > having correct fallthrough comments (that match the magic set of regex > which depends on the value of compiler flags). This is more robust and > safer. > >

[dpdk-dev] [RFC] use Gcc/Clang fallthrough attribute

2019-11-11 Thread Stephen Hemminger
Use an explicit statement fallthrough attibute, rather than relying on having correct fallthrough comments (that match the magic set of regex which depends on the value of compiler flags). This is more robust and safer. Introduces __rte_fallthrough and fixes existing code to use it. Motivated aft