135360
From e30be4212a631189bdfb68e3a72e2f80ae0a6f75 Mon Sep 17 00:00:00 2001
135360
From: Norbert Thiebaud <nthiebaud@gmail.com>
135360
Date: Sun, 21 Feb 2016 08:27:05 -0800
135360
Subject: [PATCH 395/398] WaE buggy warning in vs2015-r1
135360
135360
http://stackoverflow.com/questions/34013930/error-c4592-symbol-will-be-dynamically-initialized-vs2015-1-static-const-std
135360
135360
Change-Id: Icbe882ad237d1e4f105006d8821ed5c89b06f525
135360
Reviewed-on: https://gerrit.libreoffice.org/22601
135360
Reviewed-by: Michael Stahl <mstahl@redhat.com>
135360
Tested-by: Michael Stahl <mstahl@redhat.com>
135360
(cherry picked from commit e895f1979ebf82cbab9739356ce97fc937efbdd0)
135360
Signed-off-by: Michael Stahl <mstahl@redhat.com>
135360
(cherry picked from commit c344820237efee7c3c7309a9f30ff8739aa8b5b4)
135360
---
135360
 desktop/source/lib/init.cxx | 7 +++++++
135360
 1 file changed, 7 insertions(+)
135360
135360
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
135360
index 9e5c52917eb7..184d7772ffc9 100644
135360
--- a/desktop/source/lib/init.cxx
135360
+++ b/desktop/source/lib/init.cxx
135360
@@ -186,6 +186,10 @@ static const ExtensionMap aDrawExtensionMap[] =
135360
  * by css, it might turn out to be worth mapping some of these missing cursors
135360
  * to available cursors?
135360
  */
135360
+#ifdef _MSC_VER
135360
+#pragma warning(push)
135360
+#pragma warning( disable : 4592)
135360
+#endif
135360
 static const std::map <PointerStyle, OString> aPointerMap {
135360
     { PointerStyle::Arrow, "default" },
135360
     // PointerStyle::Null ?
135360
@@ -228,6 +232,9 @@ static const std::map <PointerStyle, OString> aPointerMap {
135360
     // Pivot Delete, TabSelectS through TabSelectSW
135360
     // PaintBrush, HideWhiteSpace, ShowWhiteSpace
135360
 };
135360
+#ifdef _MSC_VER
135360
+#pragma warning(pop)
135360
+#endif
135360
 
135360
 static OUString getUString(const char* pString)
135360
 {
135360
-- 
135360
2.12.0
135360