diff --git a/Eigen/src/Core/DenseBase.h b/Eigen/src/Core/DenseBase.h index 7fd234b07..767a8e274 100644 --- a/Eigen/src/Core/DenseBase.h +++ b/Eigen/src/Core/DenseBase.h @@ -18,7 +18,7 @@ namespace internal { // The index type defined by EIGEN_DEFAULT_DENSE_INDEX_TYPE must be a signed type. // This dummy function simply aims at checking that at compile time. static inline void check_DenseIndex_is_signed() { - EIGEN_STATIC_ASSERT(NumTraits::IsSigned,THE_INDEX_TYPE_MUST_BE_A_SIGNED_TYPE); + EIGEN_STATIC_ASSERT(NumTraits::IsSigned,THE_INDEX_TYPE_MUST_BE_A_SIGNED_TYPE) } } // end namespace internal diff --git a/Eigen/src/Core/GenericPacketMath.h b/Eigen/src/Core/GenericPacketMath.h index ebae1a34f..0b0f91028 100644 --- a/Eigen/src/Core/GenericPacketMath.h +++ b/Eigen/src/Core/GenericPacketMath.h @@ -273,7 +273,7 @@ EIGEN_DEVICE_FUNC inline Packet pfrexp(const Packet& a, Packet& exponent) { */ template EIGEN_DEVICE_FUNC inline Packet pldexp(const Packet &a, const Packet &exponent) { - EIGEN_USING_STD_MATH(ldexp); + EIGEN_USING_STD_MATH(ldexp) return ldexp(a, static_cast(exponent)); } @@ -282,12 +282,12 @@ template EIGEN_DEVICE_FUNC inline Packet pzero(const Packet& /*a*/) { Packet b; memset((void*)&b, 0, sizeof(b)); return b;} template<> EIGEN_DEVICE_FUNC inline float pzero(const float& a) { - EIGEN_UNUSED_VARIABLE(a); + EIGEN_UNUSED_VARIABLE(a) return 0.f; } template<> EIGEN_DEVICE_FUNC inline double pzero(const double& a) { - EIGEN_UNUSED_VARIABLE(a); + EIGEN_UNUSED_VARIABLE(a) return 0.; } diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 96cb24fcb..40fcb5d49 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -972,7 +972,7 @@ template EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T mini(const T& x, const T& y) { - EIGEN_USING_STD_MATH(min); + EIGEN_USING_STD_MATH(min) return min EIGEN_NOT_A_MACRO (x,y); } @@ -980,7 +980,7 @@ template EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T maxi(const T& x, const T& y) { - EIGEN_USING_STD_MATH(max); + EIGEN_USING_STD_MATH(max) return max EIGEN_NOT_A_MACRO (x,y); } #else @@ -1291,7 +1291,7 @@ template EIGEN_DEVICE_FUNC T (floor)(const T& x) { - EIGEN_USING_STD_MATH(floor); + EIGEN_USING_STD_MATH(floor) return floor(x); } diff --git a/Eigen/src/Core/products/Parallelizer.h b/Eigen/src/Core/products/Parallelizer.h index 3bdd30e5a..8f91879e4 100644 --- a/Eigen/src/Core/products/Parallelizer.h +++ b/Eigen/src/Core/products/Parallelizer.h @@ -22,7 +22,7 @@ namespace internal { inline void manage_multi_threading(Action action, int* v) { static int m_maxThreads = -1; - EIGEN_UNUSED_VARIABLE(m_maxThreads); + EIGEN_UNUSED_VARIABLE(m_maxThreads) if(action==SetAction) { diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h index 1b12544d2..f1d1d0fff 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -213,7 +213,7 @@ EIGEN_DEVICE_FUNC inline void aligned_free(void *ptr) */ inline void* aligned_realloc(void *ptr, std::size_t new_size, std::size_t old_size) { - EIGEN_UNUSED_VARIABLE(old_size); + EIGEN_UNUSED_VARIABLE(old_size) void *result; #if (EIGEN_DEFAULT_ALIGN_BYTES==0) || EIGEN_MALLOC_ALREADY_ALIGNED diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h index 68452ecfa..7932c8df6 100755 --- a/Eigen/src/Core/util/Meta.h +++ b/Eigen/src/Core/util/Meta.h @@ -688,7 +688,7 @@ bool not_equal_strict(const double& x,const double& y) { return std::not_equal_t EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC unsigned int as_uint(float x) { unsigned int ret; - EIGEN_USING_STD(memcpy); + EIGEN_USING_STD(memcpy) memcpy(&ret, &x, sizeof(float)); return ret; }