Core: Silence sparse cursor and FTZ state warnings

libeigen/eigen!2970

diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h
index 66287e8..1b6456c 100644
--- a/Eigen/src/SparseCore/SparseMatrix.h
+++ b/Eigen/src/SparseCore/SparseMatrix.h
@@ -1574,8 +1574,8 @@
     // pass 2
     for (StorageIndex j = 0; j < otherCopy.outerSize(); ++j) {
       for (typename OtherCopyEval::InnerIterator it(otherCopyEval, j); it; ++it) {
-        Index pos = internal::convert_index<Index>(positions[it.index()]);
-        positions[it.index()] = internal::convert_index<StorageIndex>(pos + 1);
+        Index pos = internal::convert_index<Index>(positions.coeff(it.index()));
+        positions.coeffRef(it.index()) = internal::convert_index<StorageIndex>(pos + 1);
         dest.m_data.index(pos) = j;
         dest.m_data.value(pos) = it.value();
       }
diff --git a/test/fp_control.h b/test/fp_control.h
index cdc0d50..1071ef4 100644
--- a/test/fp_control.h
+++ b/test/fp_control.h
@@ -61,7 +61,6 @@
 class ScopedFlushToZero {
  public:
   ScopedFlushToZero() : environment_saved_(false), active_(false), control_state_(0), vector_control_state_(0) {
-    static_cast<void>(vector_control_state_);
 #if EIGEN_TEST_HAS_RUNTIME_FTZ
     environment_saved_ = std::fegetenv(&environment_) == 0;
 
@@ -202,11 +201,11 @@
 
   static std::uint32_t mipsFlushToZeroMask() { return std::uint32_t(1) << 24; }
 
-  std::fenv_t environment_;
-  bool environment_saved_;
+  std::fenv_t environment_ EIGEN_UNUSED;
+  bool environment_saved_ EIGEN_UNUSED;
   bool active_;
-  std::uint64_t control_state_;
-  std::uint32_t vector_control_state_;
+  std::uint64_t control_state_ EIGEN_UNUSED;
+  std::uint32_t vector_control_state_ EIGEN_UNUSED;
 };
 
 // Whether dividing a normal value by a subnormal divisor yields its IEEE 754