diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-08 15:52:00 +0200 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-08 15:52:00 +0200 |
commit | 4c5778d29da3ddb21b3f1c64b8179571c7ba8847 (patch) | |
tree | 467023b7c1fdd44d724c6ed70fd8aa47a6a0a9e3 /Eigen/src/Core/util/Macros.h | |
parent | 2a64fa49475b64a7c7bcd560359d5f67180322e3 (diff) |
Made the supression of unused variables portable.
EIGEN_UNUSED is not supported on non GCC systems.
Diffstat (limited to 'Eigen/src/Core/util/Macros.h')
-rw-r--r-- | Eigen/src/Core/util/Macros.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index 82045b37c..061767039 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -176,6 +176,9 @@ #define EIGEN_UNUSED #endif +// Suppresses 'unused variable' warnings. +#define EIGEN_UNUSED_VARIABLE(var) (void)var; + #if (defined __GNUC__) #define EIGEN_ASM_COMMENT(X) asm("#"X) #else |