changeset 1122:1b47659f6a9f

Fix ico uninitialized macro (expands to 0 and screws up test)
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 05 Nov 2019 18:23:39 +0100
parents 0073f95a1df1
children 45df56448b2a
files UnitTestsSources/TestStructureSet.cpp
diffstat 1 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/UnitTestsSources/TestStructureSet.cpp	Tue Nov 05 16:31:08 2019 +0100
+++ b/UnitTestsSources/TestStructureSet.cpp	Tue Nov 05 18:23:39 2019 +0100
@@ -21,11 +21,13 @@
 // working around a bug where the Visual C++ compiler would get 
 // stuck trying to compile this cpp file in release mode
 // (versions: https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B)
-#if _MSC_VER < 1600
-#  pragma optimize("", off)
-// warning C4748: /GS can not protect parameters and local variables from
-// local buffer overrun because optimizations are disabled in function
-#  pragma warning(disable: 4748)
+#ifdef _MSC_VER
+#  if _MSC_VER < 1600
+#    pragma optimize("", off)
+// warning C4748: /GS can not protect parameters and local variables from
+// local buffer overrun because optimizations are disabled in function
+#    pragma warning(disable: 4748)
+#  endif
 #endif
 
 #include "Framework/Toolbox/DicomStructureSetUtils.h"