ERGO-Code / HiGHS

Linear optimization software
MIT License
848 stars 164 forks source link

Uninitialized member variables #1809

Closed fwesselm closed 1 week ago

fwesselm commented 1 week ago

When compiling on Windows with the /W4 flag, Visual Studio complains about uninitialized member variables:

Warning C26495 Variable is uninitialized. Always initialize a member variable (type.6).

I fixed some of these by updating / adding constructors.

The fact that some member variables are uninitialized has not created any issues. As expected, a testing run with 800+ problems showed that HiGHS' behavior is not affected by the code changes in this PR.

jajhall commented 1 week ago

Thanks. Presumably all the values are initialised elsewhere, otherwise valgrind would fail