All of lore.kernel.org
 help / color / mirror / Atom feed
* How to fix warning 'control reaches end of non-void function'
@ 2008-07-29 19:17 Alexander Beregalov
  2008-07-29 20:48 ` Daniel Baluta
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Alexander Beregalov @ 2008-07-29 19:17 UTC (permalink / raw)
  To: kernel-janitors

Hi

What is it a right way to fix these warnings?

smth function()
{
	switch (var) {
	case one:
		return 1;
	default:
		BUG();
	}
}

warning: control reaches end of non-void function

Thanks!	
	

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-07-30 15:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-29 19:17 How to fix warning 'control reaches end of non-void function' Alexander Beregalov
2008-07-29 20:48 ` Daniel Baluta
2008-07-29 20:51 ` Johannes Weiner
2008-07-29 21:02 ` Marcin Slusarz
2008-07-29 21:20 ` Johannes Weiner
2008-07-29 22:38 ` Rene Herman
2008-07-29 23:15 ` Jacob
2008-07-29 23:27 ` Alexander Beregalov
2008-07-30  8:34 ` Sandeep K Sinha
2008-07-30 12:40 ` Hugo Vasconcelos Saldanha
2008-07-30 15:57 ` walter harms

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.