On 04/04/18 18:44, Ondrej Pokorny wrote:
I want to stress that the compiler emits a warning on code that does not have (and also cannot have) an error

An error is wrong code behaviour. If you do not initialise a variable with the correct value, then you can have an error. This correct value can be different from "empty string" or "nil".

For the same reason, we also warn about uninitialised global variables (if this can be detected without interprocedural analysis, i.e., if they are only used in the main program code; but that is merely due to a limitation of the analysis).


Jonas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to