Hi Giacinto,


I prefer we set a good example :)

Then the cleanest way is to set a default in the switch, without any function.
Ok?


That is not really great either. We want to make sure that the compiler warns us if we add a new enumeration and don't take care of it in the code. In fact we have a coding-style.txt entry for this as well, see item M12. If there's code that uses default labels for enums, it is likely not compliant and should probably be fixed.

Regards,
-Denis
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to