Skip to content

Commit

Permalink
Change location of void and annotate
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Jan 21, 2025
1 parent 6a8288e commit 41790ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/boost/math/special_functions/gamma.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,15 @@ template <class T, class Policy, class Lanczos>
BOOST_MATH_GPU_ENABLED T gamma_imp_final(T z, const Policy& pol, const Lanczos& l)
{
BOOST_MATH_STD_USING

(void)l; // Suppresses unused variable warning when BOOST_MATH_INSTRUMENT is not defined

T result = 1;
T result = 1;

#ifdef BOOST_MATH_INSTRUMENT
static bool b = false;
if(!b)
{
(void)l;
std::cout << "tgamma_imp called with " << typeid(z).name() << " " << typeid(l).name() << std::endl;
b = true;
}
Expand Down

0 comments on commit 41790ee

Please sign in to comment.