Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize variables for presolve to prevent MSVS error C4703 #287

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

jhmgoossens
Copy link
Contributor

Fix for error/warning C4703 for MSVS builds: Potentially uninitialized local pointer variable used for flags, maxdown and maxup.

The original code initializes flags, maxdown and maxup only "if(takeOutSome)", and only uses these variables under the same condition (good). Unfortunately, the MSVS linker still believes this is potentially wrong--which is incorrect. Due to other linker options (/sdl), these (erroneous) warnings are treated as errors and therefore stop the build. The easiest way to workaround this is to initialize the variables.

Potentially uninitialized local pointer variable used for flags, maxdown and maxup.
@jhmgoossens jhmgoossens self-assigned this Mar 11, 2024
@jhmgoossens jhmgoossens merged commit a566fee into coin-or:master Mar 15, 2024
9 of 14 checks passed
@jhmgoossens jhmgoossens deleted the dev-fix4703 branch March 23, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant