Re: [PATCH 1/1] bug: Add unreachable() to generic BUG() to silence warnings

2014-08-06 Thread Josh Triplett
On Thu, Aug 07, 2014 at 03:13:41AM +0200, Nick Krause wrote: > Architectures which use generic 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 functio

[PATCH 1/1] bug: Add unreachable() to generic BUG() to silence warnings

2014-08-06 Thread Nick Krause
Architectures which use generic 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(