Variable initialization in Delphi 10 Rio : <p>My company has been using Delphi for decades, and our core program was made in a quite old version. It has about 1.3 million lines of code.</p>

<p>After upgrading to Delphi 10 Rio, a major problem occured. Where our local function variables used to be initialized with a default value (integer would be 0, boolean would be false), it seems they no longer are. Now all my variables get a random value as they are created, so an integer gets something like 408796 as it's value.</p>

<p>I suppose this isn't an issue with new development, but I am sure you can see the problem in our large code base. We have never manually assigned default values to these variables as it worked fine.
Object variables, however, have always had this problem. All properties get random values, so we have adressed that as we went. But now our program completely breaks, as all counters etc. are starting at high values instead of 0. And running through the entire project to fix this would take months.</p>

<p>Is there perhaps a compiler option to change this? Seems very backwards that they would have changed this intentionally, as it would be pretty stupid. Why remove functionality that all developers expect? I had actually expected it to go the other way, that object variables would no longer need manual default values, and that they maybe implemented a garbage collector. But is seems Delphi has seriously regressed?</p>

<p>If there is some option to fix this, PLEASE let me know.</p>
