Re: [PATCH] sh: bug: add unreachable() to silence warnings

2014-08-06 Thread Josh Triplett
On Thu, Aug 07, 2014 at 03:42:20AM +0200, Nick Krause wrote: > SuperH BUG() have warnings like > > kernel/sched/core.c:2692:1: warning: control reaches end of non-void function > [-Wreturn-type] > net/core/ethtool.c:236:1: warning: control reaches end of non-void function > [-Wreturn-type] > > Ot

[PATCH] sh: bug: add unreachable() to silence warnings

2014-08-06 Thread Nick Krause
SuperH BUG() have warnings like kernel/sched/core.c:2692:1: warning: control reaches end of non-void function [-Wreturn-type] net/core/ethtool.c:236:1: warning: control reaches end of non-void function [-Wreturn-type] Other BUG() implementations have added unreachable() at end becuase of which I