Re: [PATCH] tests: Add break to avoid implicit-fallthrough warning

2019-12-06 Thread Mark Wielaard
On Fri, 2019-12-06 at 17:21 +0100, Florian Weimer wrote: > * Mark Wielaard: > > > For some reason gcc might fail to recognize the assert (0) will never > > return and emit an implicit-fallthrough warning. Just add a break to > > silence it. > > Is this with -DNDEBUG? assert (0) expands to basica

Re: [PATCH] tests: Add break to avoid implicit-fallthrough warning

2019-12-06 Thread Florian Weimer
* Mark Wielaard: > For some reason gcc might fail to recognize the assert (0) will never > return and emit an implicit-fallthrough warning. Just add a break to > silence it. Is this with -DNDEBUG? assert (0) expands to basically nothing in that case. I'm not sure if we should change that. We c