remove semi triggering -Wextra-semi-stmt

This commit is contained in:
Alexander Neumann 2020-09-07 11:42:30 +02:00
parent 5f25bcf7d6
commit 5272106826
6 changed files with 10 additions and 10 deletions

View File

@ -18,7 +18,7 @@ namespace internal {
// The index type defined by EIGEN_DEFAULT_DENSE_INDEX_TYPE must be a signed type. // 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. // This dummy function simply aims at checking that at compile time.
static inline void check_DenseIndex_is_signed() { static inline void check_DenseIndex_is_signed() {
EIGEN_STATIC_ASSERT(NumTraits<DenseIndex>::IsSigned,THE_INDEX_TYPE_MUST_BE_A_SIGNED_TYPE); EIGEN_STATIC_ASSERT(NumTraits<DenseIndex>::IsSigned,THE_INDEX_TYPE_MUST_BE_A_SIGNED_TYPE)
} }
} // end namespace internal } // end namespace internal

View File

@ -273,7 +273,7 @@ EIGEN_DEVICE_FUNC inline Packet pfrexp(const Packet& a, Packet& exponent) {
*/ */
template<typename Packet> EIGEN_DEVICE_FUNC inline Packet template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
pldexp(const Packet &a, const Packet &exponent) { pldexp(const Packet &a, const Packet &exponent) {
EIGEN_USING_STD_MATH(ldexp); EIGEN_USING_STD_MATH(ldexp)
return ldexp(a, static_cast<int>(exponent)); return ldexp(a, static_cast<int>(exponent));
} }
@ -282,12 +282,12 @@ template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
pzero(const Packet& /*a*/) { Packet b; memset((void*)&b, 0, sizeof(b)); return b;} pzero(const Packet& /*a*/) { Packet b; memset((void*)&b, 0, sizeof(b)); return b;}
template<> EIGEN_DEVICE_FUNC inline float pzero<float>(const float& a) { template<> EIGEN_DEVICE_FUNC inline float pzero<float>(const float& a) {
EIGEN_UNUSED_VARIABLE(a); EIGEN_UNUSED_VARIABLE(a)
return 0.f; return 0.f;
} }
template<> EIGEN_DEVICE_FUNC inline double pzero<double>(const double& a) { template<> EIGEN_DEVICE_FUNC inline double pzero<double>(const double& a) {
EIGEN_UNUSED_VARIABLE(a); EIGEN_UNUSED_VARIABLE(a)
return 0.; return 0.;
} }

View File

@ -972,7 +972,7 @@ template<typename T>
EIGEN_DEVICE_FUNC EIGEN_DEVICE_FUNC
EIGEN_ALWAYS_INLINE T mini(const T& x, const T& y) 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); return min EIGEN_NOT_A_MACRO (x,y);
} }
@ -980,7 +980,7 @@ template<typename T>
EIGEN_DEVICE_FUNC EIGEN_DEVICE_FUNC
EIGEN_ALWAYS_INLINE T maxi(const T& x, const T& y) 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); return max EIGEN_NOT_A_MACRO (x,y);
} }
#else #else
@ -1291,7 +1291,7 @@ template<typename T>
EIGEN_DEVICE_FUNC EIGEN_DEVICE_FUNC
T (floor)(const T& x) T (floor)(const T& x)
{ {
EIGEN_USING_STD_MATH(floor); EIGEN_USING_STD_MATH(floor)
return floor(x); return floor(x);
} }

View File

@ -22,7 +22,7 @@ namespace internal {
inline void manage_multi_threading(Action action, int* v) inline void manage_multi_threading(Action action, int* v)
{ {
static int m_maxThreads = -1; static int m_maxThreads = -1;
EIGEN_UNUSED_VARIABLE(m_maxThreads); EIGEN_UNUSED_VARIABLE(m_maxThreads)
if(action==SetAction) if(action==SetAction)
{ {

View File

@ -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) 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; void *result;
#if (EIGEN_DEFAULT_ALIGN_BYTES==0) || EIGEN_MALLOC_ALREADY_ALIGNED #if (EIGEN_DEFAULT_ALIGN_BYTES==0) || EIGEN_MALLOC_ALREADY_ALIGNED

View File

@ -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) EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC unsigned int as_uint(float x)
{ {
unsigned int ret; unsigned int ret;
EIGEN_USING_STD(memcpy); EIGEN_USING_STD(memcpy)
memcpy(&ret, &x, sizeof(float)); memcpy(&ret, &x, sizeof(float));
return ret; return ret;
} }