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

Compilation warnings due to conditionally defined values #93

Open
rafaelmds opened this issue Apr 28, 2022 · 0 comments
Open

Compilation warnings due to conditionally defined values #93

rafaelmds opened this issue Apr 28, 2022 · 0 comments

Comments

@rafaelmds
Copy link
Contributor

In some machines, the compiler warns about -Wmaybe-uninitialized variables.

This is caused by some variables whose values are conditionally defined, although a no-matching scenario is never to be expected.

So, this need some improvement to define a default value and some improvement in the series of if conditionals.

Some variables presenting this issue:

  • dh_v_mod in Calc_dt_calor (main.cpp)
  • temper_aux in Thermal_init_3d (DM1_3d.cpp)
  • p_prox in Swarm_add_remove_2d (DMSwarm_move.cpp)
  • p_prox_total and chosen in Swarm_add_remove_3d (DMSwarm_move.cpp)
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

No branches or pull requests

1 participant