diff options
author | 2009-01-27 17:40:14 +0000 | |
---|---|---|
committer | 2009-01-27 17:40:14 +0000 | |
commit | d7003436326c2fe690462131b7416be1d544fc84 (patch) | |
tree | 718a752d8deb68f37c879dfede96cfdc92fc7be6 /Eigen/src | |
parent | bea1737a5a5da4cf1edd17eb49301e329a750f89 (diff) |
fix "empty macro arguments are undefined in ISO C90 and ISO C++98"
warning found by gcc-svn
Diffstat (limited to 'Eigen/src')
-rw-r--r-- | Eigen/src/Core/CacheFriendlyProduct.h | 16 | ||||
-rw-r--r-- | Eigen/src/Core/util/Macros.h | 3 |
2 files changed, 11 insertions, 8 deletions
diff --git a/Eigen/src/Core/CacheFriendlyProduct.h b/Eigen/src/Core/CacheFriendlyProduct.h index e2a501736..f86f00dd2 100644 --- a/Eigen/src/Core/CacheFriendlyProduct.h +++ b/Eigen/src/Core/CacheFriendlyProduct.h @@ -442,11 +442,11 @@ static EIGEN_DONT_INLINE void ei_cache_friendly_product_colmajor_times_vector( { case AllAligned: for (int j = alignedStart; j<alignedSize; j+=PacketSize) - _EIGEN_ACCUMULATE_PACKETS(,,,); + _EIGEN_ACCUMULATE_PACKETS(EIGEN_EMPTY,EIGEN_EMPTY,EIGEN_EMPTY,EIGEN_EMPTY); break; case EvenAligned: for (int j = alignedStart; j<alignedSize; j+=PacketSize) - _EIGEN_ACCUMULATE_PACKETS(,u,,); + _EIGEN_ACCUMULATE_PACKETS(EIGEN_EMPTY,u,EIGEN_EMPTY,EIGEN_EMPTY); break; case FirstAligned: if(peels>1) @@ -482,11 +482,11 @@ static EIGEN_DONT_INLINE void ei_cache_friendly_product_colmajor_times_vector( } } for (int j = peeledSize; j<alignedSize; j+=PacketSize) - _EIGEN_ACCUMULATE_PACKETS(,u,u,); + _EIGEN_ACCUMULATE_PACKETS(EIGEN_EMPTY,u,u,EIGEN_EMPTY); break; default: for (int j = alignedStart; j<alignedSize; j+=PacketSize) - _EIGEN_ACCUMULATE_PACKETS(u,u,u,); + _EIGEN_ACCUMULATE_PACKETS(u,u,u,EIGEN_EMPTY); break; } } @@ -636,11 +636,11 @@ static EIGEN_DONT_INLINE void ei_cache_friendly_product_rowmajor_times_vector( { case AllAligned: for (int j = alignedStart; j<alignedSize; j+=PacketSize) - _EIGEN_ACCUMULATE_PACKETS(,,,); + _EIGEN_ACCUMULATE_PACKETS(EIGEN_EMPTY,EIGEN_EMPTY,EIGEN_EMPTY,EIGEN_EMPTY); break; case EvenAligned: for (int j = alignedStart; j<alignedSize; j+=PacketSize) - _EIGEN_ACCUMULATE_PACKETS(,u,,); + _EIGEN_ACCUMULATE_PACKETS(EIGEN_EMPTY,u,EIGEN_EMPTY,EIGEN_EMPTY); break; case FirstAligned: if (peels>1) @@ -679,11 +679,11 @@ static EIGEN_DONT_INLINE void ei_cache_friendly_product_rowmajor_times_vector( } } for (int j = peeledSize; j<alignedSize; j+=PacketSize) - _EIGEN_ACCUMULATE_PACKETS(,u,u,); + _EIGEN_ACCUMULATE_PACKETS(EIGEN_EMPTY,u,u,EIGEN_EMPTY); break; default: for (int j = alignedStart; j<alignedSize; j+=PacketSize) - _EIGEN_ACCUMULATE_PACKETS(u,u,u,); + _EIGEN_ACCUMULATE_PACKETS(u,u,u,EIGEN_EMPTY); break; } tmp0 += ei_predux(ptmp0); diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index d3698e819..a7137cc03 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -165,6 +165,9 @@ using Eigen::ei_cos; #define EIGEN_DEFAULT_IO_FORMAT Eigen::IOFormat() #endif +// just an empty macro ! +#define EIGEN_EMPTY + // format used in Eigen's documentation // needed to define it here as escaping characters in CMake add_definition's argument seems very problematic. #define EIGEN_DOCS_IO_FORMAT IOFormat(3, AlignCols, " ", "\n", "", "") |