Hi, Alexander Beregalov <a.beregalov@xxxxxxxxx> writes: > 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 Uhm, make sure there is always a value returned...? You don't do that when var is not one. Hannes -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ