summaryrefslogtreecommitdiff
path: root/cpp/src/slice2html/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2html/Gen.cpp')
-rw-r--r--cpp/src/slice2html/Gen.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/slice2html/Gen.cpp b/cpp/src/slice2html/Gen.cpp
index 21eeb7553f6..0ac658ddf81 100644
--- a/cpp/src/slice2html/Gen.cpp
+++ b/cpp/src/slice2html/Gen.cpp
@@ -25,7 +25,12 @@
#include <iterator>
#include <string.h>
-#if defined(__clang__)
+#if defined(_MSC_VER)
+# pragma warning(disable:4456) // shadow
+# pragma warning(disable:4457) // shadow
+# pragma warning(disable:4459) // shadow
+# pragma warning(disable:4100) // unreferenced parameter
+#elif defined(__clang__)
# pragma clang diagnostic ignored "-Wshadow"
# pragma clang diagnostic ignored "-Wshadow-all"
# pragma clang diagnostic ignored "-Wunused-parameter"