Fixed the bad fix - now the unsupported examples and snippets work on windows.
diff --git a/doc/snippets/MatrixBase_extract.cpp b/doc/snippets/MatrixBase_extract.cpp
index a5ccd75..c96220f 100644
--- a/doc/snippets/MatrixBase_extract.cpp
+++ b/doc/snippets/MatrixBase_extract.cpp
@@ -1,4 +1,6 @@
-#warning deprecated
+#ifndef _MSC_VER
+  #warning deprecated
+#endif
 /* deprecated
 Matrix3i m = Matrix3i::Random();
 cout << "Here is the matrix m:" << endl << m << endl;
diff --git a/doc/snippets/MatrixBase_marked.cpp b/doc/snippets/MatrixBase_marked.cpp
index f536773..f607121 100644
--- a/doc/snippets/MatrixBase_marked.cpp
+++ b/doc/snippets/MatrixBase_marked.cpp
@@ -1,4 +1,6 @@
-#warning deprecated
+#ifndef _MSC_VER
+  #warning deprecated
+#endif
 /*
 Matrix3d m = Matrix3d::Zero();
 m.part<Eigen::UpperTriangular>().setOnes();
diff --git a/doc/snippets/MatrixBase_part.cpp b/doc/snippets/MatrixBase_part.cpp
index 81e66c4..d3e7f48 100644
--- a/doc/snippets/MatrixBase_part.cpp
+++ b/doc/snippets/MatrixBase_part.cpp
@@ -1,4 +1,6 @@
-#warning deprecated
+#ifndef _MSC_VER
+  #warning deprecated
+#endif
 /*
 Matrix3d m = Matrix3d::Zero();
 m.part<Eigen::StrictlyUpperTriangular>().setOnes();