changeset 1123:45df56448b2a

Changed my mind to cover all msvc (after all it's a test)
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 05 Nov 2019 18:26:59 +0100
parents 1b47659f6a9f
children d7e06542304c 58799b7317fa 7681f3943748
files UnitTestsSources/TestStructureSet.cpp
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/UnitTestsSources/TestStructureSet.cpp	Tue Nov 05 18:23:39 2019 +0100
+++ b/UnitTestsSources/TestStructureSet.cpp	Tue Nov 05 18:26:59 2019 +0100
@@ -22,12 +22,10 @@
 // stuck trying to compile this cpp file in release mode
 // (versions: https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B)
 #ifdef _MSC_VER
-#  if _MSC_VER < 1600
-#    pragma optimize("", off)
+#  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
+#  pragma warning(disable: 4748)
 #endif
 
 #include "Framework/Toolbox/DicomStructureSetUtils.h"