The -initlocals option specifies whether the compiler should automatically initialize local variables
-initlocals[+|-]
+ | - | Specifying +, or just -ins, directs the compiler to init local variables or not. |
This can be used to automatically initialize all local variables and suppress compiler warnings about local variables that are not initialized.
1.Open the project's Properties page.
2.Click the Language tab.
3.In the General section, modify the "Initialize Local Variables" value
4.Click here to see the property page