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

Fix uninitialised variable warning in GaussianQuadrature #458

Conversation

vsnever
Copy link
Member

@vsnever vsnever commented Aug 2, 2024

This PR simply fixes a warning caused by returning a potentially uninitialized variable in GaussianQuadrature.evaluate():

cherab/core/math/integrators/integrators1d.c: In function ‘__pyx_f_6cherab_4core_4math_11integrators_13integrators1d_18GaussianQuadrature_evaluate’:
cherab/core/math/integrators/integrators1d.c:31196:10: warning: ‘__pyx_v_newval’ may be used uninitialized in this function [-Wmaybe-uninitialized]
31196 |   return __pyx_r;

Copy link
Member

@Mateasek Mateasek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good cactch @vsnever

@jacklovell jacklovell merged commit 3e0f352 into cherab:development Aug 2, 2024
8 checks passed
@vsnever vsnever deleted the fix/uninitialised_variable_in_quadrature branch August 30, 2024 16:25
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.

3 participants