From 9fd081cddc1ec97b1e65e8c10172914b0ecf2a2f Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Sat, 26 Nov 2016 20:22:25 -0800 Subject: [PATCH] Fixed compilation warnings --- unsupported/Eigen/CXX11/src/util/CXX11Meta.h | 2 +- .../Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/unsupported/Eigen/CXX11/src/util/CXX11Meta.h b/unsupported/Eigen/CXX11/src/util/CXX11Meta.h index 63c2a1def..1e3aef8c2 100644 --- a/unsupported/Eigen/CXX11/src/util/CXX11Meta.h +++ b/unsupported/Eigen/CXX11/src/util/CXX11Meta.h @@ -123,7 +123,7 @@ template struct get<0, type_lis template struct get> : get> {}; template struct get<0, numeric_list> { constexpr static T value = a; }; -template constexpr inline const T array_get(const numeric_list& l) { +template constexpr inline const T array_get(const numeric_list&) { return get<(int)n, numeric_list>::value; } diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h index f524d7137..369ad97b4 100644 --- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h @@ -122,8 +122,8 @@ struct lgamma_impl { 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 { 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