diff --git a/unsupported/test/sparse_extra.cpp b/unsupported/test/sparse_extra.cpp
index e8c584640..6c5c888ae 100644
--- a/unsupported/test/sparse_extra.cpp
+++ b/unsupported/test/sparse_extra.cpp
@@ -22,8 +22,9 @@
// License and a copy of the GNU General Public License along with
// Eigen. If not, see .
-//#include "sparse.h"
+
// import basic and product tests for deprectaed DynamicSparseMatrix
+#define EIGEN_NO_DEPRECATED_WARNING
#include "sparse_basic.cpp"
#include "sparse_product.cpp"
#include