add EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS non-default option. Use it in our own CMakeLists. also add a include-guard-like mechanism to prevent doing unmatched #pragma warning push/pop.

This commit is contained in:
Benoit Jacob
2011-02-22 10:05:41 -05:00
parent 9e1127619c
commit c58a2ff03a
3 changed files with 27 additions and 9 deletions

View File

@@ -1,5 +1,12 @@
#ifdef _MSC_VER
#pragma warning( pop )
#elif defined __INTEL_COMPILER
#pragma warning pop
#endif
#ifdef EIGEN_WARNINGS_DISABLED
#undef EIGEN_WARNINGS_DISABLED
#ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
#ifdef _MSC_VER
#pragma warning( pop )
#elif defined __INTEL_COMPILER
#pragma warning pop
#endif
#endif
#endif // EIGEN_WARNINGS_DISABLED