Re: [PATCH] net/iavf: fix old GCC compilation warnings

2023-06-09 Thread Stephen Hemminger
On Fri, 9 Jun 2023 13:41:56 +0800 Zhichao Zeng wrote: > The code uses the Wimplicit-fallthrough compile option to ignore > falls through warnings in switch case, but this option was introduced > by GCC 7 and old GCC do not recognize the option. > > Add judgment to avoid warnings about unrecogni

RE: [PATCH] net/iavf: fix old GCC compilation warnings

2023-06-09 Thread Zeng, ZhichaoX
Subject: Re: [PATCH] net/iavf: fix old GCC compilation warnings > > On Fri, Jun 9, 2023 at 7:35 AM Zhichao Zeng > wrote: > > > > The code uses the Wimplicit-fallthrough compile option to ignore falls > > through warnings in switch case, but this option was introd

Re: [PATCH] net/iavf: fix old GCC compilation warnings

2023-06-08 Thread David Marchand
On Fri, Jun 9, 2023 at 7:35 AM Zhichao Zeng wrote: > > The code uses the Wimplicit-fallthrough compile option to ignore > falls through warnings in switch case, but this option was introduced > by GCC 7 and old GCC do not recognize the option. > > Add judgment to avoid warnings about unrecognized

[PATCH] net/iavf: fix old GCC compilation warnings

2023-06-08 Thread Zhichao Zeng
The code uses the Wimplicit-fallthrough compile option to ignore falls through warnings in switch case, but this option was introduced by GCC 7 and old GCC do not recognize the option. Add judgment to avoid warnings about unrecognized options in old GCC. Fixes: 95a1b0b23140 ("net/iavf: support Rx