Fix type of suppressed compiler warning for Eigen 3.2.0.

- Warning type generated is unused-but-set-variable, not unused-variable
  and the corresponding "local variable is initialized but not
  referenced" MSVC warning.

Change-Id: I716fd6a87cc91533bc862b2ef932601c8857818d
This commit is contained in:
Alex Stewart
2014-07-22 19:38:50 +01:00
parent b76615a670
commit b27a2044b3
+2 -2
View File
@@ -45,10 +45,10 @@
// widely used (Ubuntu 14.04), and Ceres won't compile otherwise due to -Werror.
#if defined(_MSC_VER)
#pragma warning( push )
#pragma warning( disable : 42024 )
#pragma warning( disable : 4189 )
#else
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#include "Eigen/SparseQR"
#if defined(_MSC_VER)