[fpc-devel] "Case statement does not handle all possible cases" Warning

Ryan Joseph ryan at thealchemistguild.com
Sun May 19 04:25:09 CEST 2019



> On May 18, 2019, at 7:42 PM, Ralf Quint <freedos.la at gmail.com> wrote:
> 
> A warning from the compiler is hence an appropriate response, telling the programmer to check the source and make a decision, even if it is adding an empty else clause to the offending case statement. Everything else is just "lazy programming", like it or not...
> 
> Ralf

Then should all if statements have an else? Should constructors give warnings if you don’t initialize all fields? It’s a slippery slope.

Regards,
	Ryan Joseph




More information about the fpc-devel mailing list