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

Uninitialized variables may be used in cec2014 problem #561

Closed
pmslavin opened this issue Dec 12, 2023 · 0 comments · Fixed by #562
Closed

Uninitialized variables may be used in cec2014 problem #561

pmslavin opened this issue Dec 12, 2023 · 0 comments · Fixed by #562

Comments

@pmslavin
Copy link
Contributor

There are two instances where variables may be used in an uninitialized state in the src/problems/cec2014.cpp problem:

  • In weierstrass_func, line 498 declares double sum2 which may be used uninitialized on line 515.
  • In oszfunc, line 1297 declares double xx which may be used uninitialized on line 1317.

These prevent the cec2014 problem being built when "warnings-as-errors" compiler flags are enabled, e.g. -Werror for g++ or /WX for msvc.

This is fixed in pmslavin/cec2014_uninitialized

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 a pull request may close this issue.

1 participant