Martin G C Davies wrote:
I can't see any way an "undefined" return value is useful so why is it just a warning since it's almost bound to produce bad code?
I'll turn it into an error.
If you compile with `-Wall' (always recommended), you'll see this problem immediately.
Sadly I get thousands of warnings like that (case statements where not all values checked mostly).
Try `-Wno-switch' (after `-Wall').
Frank