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

Avoid warning about potentially unused variable. #820

Merged
merged 1 commit into from Apr 14, 2016

Conversation

bangerth
Copy link
Contributor

In optimized mode, we did not check that a point at which we want to evaluate
the solution was actually found. This led to a warning about an unused
variable 'point_found'. This could be addressed by doing a 'void' cast
of said variable, but the better solution appears to be to actually
perform the check also in optimized mode -- after all, the list of points
at which we want to evaluate the solution is read at run-time from the
input field.

In optimized mode, we did not check that a point at which we want to evaluate
the solution was actually found. This led to a warning about an unused
variable 'point_found'. This could be addressed by doing a 'void' cast
of said variable, but the better solution appears to be to actually
perform the check also in optimized mode -- after all, the list of points
at which we want to evaluate the solution is read at run-time from the
input field.
@tjhei tjhei merged commit e88a0ff into geodynamics:master Apr 14, 2016
@bangerth bangerth deleted the avoid-warnings-3 branch May 23, 2017 22:37
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.

None yet

2 participants