Fixed compilation warnings

This commit is contained in:
Benoit Steiner
2016-11-26 20:22:25 -08:00
parent 67b2c41f30
commit 9fd081cddc
2 changed files with 5 additions and 5 deletions

View File

@@ -122,8 +122,8 @@ struct lgamma_impl<float> {
EIGEN_DEVICE_FUNC
static EIGEN_STRONG_INLINE float run(float x) {
#if !defined(__CUDA_ARCH__) && (defined(_BSD_SOURCE) || defined(_SVID_SOURCE)) && !defined(__APPLE__)
int signgam;
return ::lgammaf_r(x, &signgam);
int dummy;
return ::lgammaf_r(x, &dummy);
#else
return ::lgammaf(x);
#endif
@@ -135,8 +135,8 @@ struct lgamma_impl<double> {
EIGEN_DEVICE_FUNC
static EIGEN_STRONG_INLINE double run(double x) {
#if !defined(__CUDA_ARCH__) && (defined(_BSD_SOURCE) || defined(_SVID_SOURCE)) && !defined(__APPLE__)
int signgam;
return ::lgamma_r(x, &signgam);
int dummy;
return ::lgamma_r(x, &dummy);
#else
return ::lgamma(x);
#endif