On 29-07-08 21:17, Alexander Beregalov wrote:
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
BUG() may actually do nothing so I'd just reorder things around as
int function(void)
{
switch (var) {
case 1:
break;
default:
BUG();
}
return 1;
}
Rene.
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ