[fpc-devel] "unused variable" depends on optimization?

Jonas Maebe jonas at freepascal.org
Sun Feb 23 14:16:26 CET 2025


On 23/02/2025 14:14, Martin Frb via fpc-devel wrote:
> Is it correct (i.e. by design) that the compiler emits some "may not be 
> initialized" warnings, only on certain optimization levels?

Yes. Those warnings depends on data flow analysis, which is only enabled 
by defaullt at -O3 and higher. You can also enabled it separately with 
-Oodfa.


Jonas


More information about the fpc-devel mailing list