Skip to content

MAINT: Add [[maybe_unused] to silence some warnings #28223

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

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

sterrettm2
Copy link
Contributor

@sterrettm2 sterrettm2 commented Jan 23, 2025

This patch should close #27983

It seems some compiler versions complain about the functions lut_16_f64 and lut_32_f32 as being unused, as they are only used in certain if constexpr branches. Since these functions are used, just in only one branch of a if constexpr, I simply marked them as [[maybe_unused]] to silence this warning.

@ngoldbaum, can you check if this silences the warning on your system?

@charris charris merged commit 86f37c3 into numpy:main Jan 24, 2025
68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MAINT: unused function warnings
2 participants