# HG changeset patch # User Benjamin Golinvaux # Date 1572974619 -3600 # Node ID 1b47659f6a9f7581546d2cf3415954294e260a33 # Parent 0073f95a1df1269e04c8d907db0a8c7e1ef9fef8 Fix ico uninitialized macro (expands to 0 and screws up test) diff -r 0073f95a1df1 -r 1b47659f6a9f UnitTestsSources/TestStructureSet.cpp --- 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"