Skip to content

Commit 2f3c798

Browse files
kenarabmborland
andauthored
Update gamma.hpp (#1236)
* Update gamma.hpp Missing name for Lanczos parameter in gamma_imp_final * Update gamma.hpp * Change location of void and annotate --------- Co-authored-by: Matt Borland <[email protected]>
1 parent 024a4fe commit 2f3c798

File tree

1 file changed

+4
-2
lines changed
  • include/boost/math/special_functions

1 file changed

+4
-2
lines changed

Diff for: include/boost/math/special_functions/gamma.hpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,13 @@ BOOST_MATH_GPU_ENABLED T sinpx(T z)
111111
// tgamma(z), with Lanczos support:
112112
//
113113
template <class T, class Policy, class Lanczos>
114-
BOOST_MATH_GPU_ENABLED T gamma_imp_final(T z, const Policy& pol, const Lanczos&)
114+
BOOST_MATH_GPU_ENABLED T gamma_imp_final(T z, const Policy& pol, const Lanczos& l)
115115
{
116116
BOOST_MATH_STD_USING
117+
118+
(void)l; // Suppresses unused variable warning when BOOST_MATH_INSTRUMENT is not defined
117119

118-
T result = 1;
120+
T result = 1;
119121

120122
#ifdef BOOST_MATH_INSTRUMENT
121123
static bool b = false;

0 commit comments

Comments
 (0)