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 unused abterm1 compile warnings #1014

Merged
merged 1 commit into from
Aug 19, 2023

Conversation

ryanelandt
Copy link
Contributor

The file exp_sinh_detail.hpp contains an unconditionally unused variable abterm1 that causes compile warnings. This issue was fixed for C++17 and above in #884 with the addition of the BOOST_MATH_MAYBE_UNUSED macro.

This PR implements a direct fix that removes the warning for all C++ versions. It also removes the BOOST_MATH_MAYBE_UNUSED macro as this is the only place it's used in the Boost (all libraries).

@jzmaddock
Copy link
Collaborator

Looks good to me, not sure how that crept in there.... merging.

@jzmaddock jzmaddock merged commit dc10fc0 into boostorg:develop Aug 19, 2023
@ryanelandt
Copy link
Contributor Author

Thanks!

@ryanelandt ryanelandt deleted the fix_compile_warnings branch August 19, 2023 14:03
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.

2 participants