mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user