Re: Using -Wno-implicit-fallthrough creates warnings

2017-04-12 Thread Bart Van Assche
On 04/12/17 07:46, Bill Fenner wrote: > On Tue, Apr 11, 2017 at 11:51 AM, Magnus Fromreide > wrote: > > On Tue, Apr 11, 2017 at 10:27:42AM -0500, Bill Fenner wrote: > > Now I get a fair number of > > > > cc1: warning: unrecognized command line option >

Antw: Re: Using -Wno-implicit-fallthrough creates warnings

2017-04-12 Thread Ulrich Windl
>>> Bill Fenner schrieb am 12.04.2017 um 16:36 in Nachricht : [...] > Since there's no obvious way to check whether or not the compiler > *actually* supports this warning flag, I'm fine leaving things as they are. Did you play with "gcc --help=warnings | grep -- -Wno-implicit-fallthrough"? ;-)

Re: Using -Wno-implicit-fallthrough creates warnings

2017-04-12 Thread Bill Fenner
On Tue, Apr 11, 2017 at 11:51 AM, Magnus Fromreide wrote: > On Tue, Apr 11, 2017 at 10:27:42AM -0500, Bill Fenner wrote: > > Now I get a fair number of > > > > cc1: warning: unrecognized command line option > "-Wno-implicit-fallthrough" > > > > Would it be better to try __attribute__((fallthrough

Re: Using -Wno-implicit-fallthrough creates warnings

2017-04-12 Thread Bill Fenner
On Tue, Apr 11, 2017 at 11:40 AM, Bart Van Assche wrote: > On Tue, Apr 11, 2017 at 8:27 AM, Bill Fenner wrote: > > Now I get a fair number of > > > > cc1: warning: unrecognized command line option > "-Wno-implicit-fallthrough" > > > > Would it be better to try __attribute__((fallthrough))? Or,

Re: Using -Wno-implicit-fallthrough creates warnings

2017-04-11 Thread Magnus Fromreide
On Tue, Apr 11, 2017 at 10:27:42AM -0500, Bill Fenner wrote: > Now I get a fair number of > > cc1: warning: unrecognized command line option "-Wno-implicit-fallthrough" > > Would it be better to try __attribute__((fallthrough))? Or, only add the > -W flag if the compiler supports it? Maybe add

Using -Wno-implicit-fallthrough creates warnings

2017-04-11 Thread Bill Fenner
Now I get a fair number of cc1: warning: unrecognized command line option "-Wno-implicit-fallthrough" Would it be better to try __attribute__((fallthrough))? Or, only add the -W flag if the compiler supports it? Bill On Mon, Apr 10, 2017 at 12:44 AM, bart wrote: > This is an automated ema