From 39706f1c9a102d05d06264b369ab9e8742b9e23d Mon Sep 17 00:00:00 2001
From: Dale Glass <dale@daleglass.net>
Date: Tue, 7 Jun 2022 20:42:12 +0200
Subject: [PATCH] Prototype for MSVC support, still need to figure out the
 right directives

---
 CMakeLists.txt                             | 3 +++
 libraries/shared/src/WarningsSuppression.h | 5 +++++
 2 files changed, 8 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3ec9d942e1..43c0dad424 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -157,6 +157,9 @@ if(OVERTE_WARNINGS_WHITELIST)
     elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
         message("Clang compiler detected, suppressing some unsolvable warnings.")
         add_compile_definitions(OVERTE_WARNINGS_WHITELIST_CLANG)
+    elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
+        message("Clang compiler detected, suppressing some unsolvable warnings.")
+        add_compile_definitions(OVERTE_WARNINGS_WHITELIST_MSVC)
     else()
         message("We don't know yet how to whitelist warnings for ${CMAKE_CXX_COMPILER_ID}")
     endif()
diff --git a/libraries/shared/src/WarningsSuppression.h b/libraries/shared/src/WarningsSuppression.h
index 16516137fa..83a81d9c81 100644
--- a/libraries/shared/src/WarningsSuppression.h
+++ b/libraries/shared/src/WarningsSuppression.h
@@ -35,6 +35,11 @@
 
     #define OVERTE_IGNORE_DEPRECATED_END _Pragma("clang diagnostic pop")
 
+#elif OVERTE_WARNINGS_WHITELIST_MSVC
+
+// Nothing here yet. Avoids problems with the #warning below, MSVC doesn't like it.
+
+
 #else
 
 #warning "Don't know how to suppress warnings on this compiler. Please fix me."