# HG changeset patch # User Benjamin Golinvaux # Date 1572967868 -3600 # Node ID 0073f95a1df1269e04c8d907db0a8c7e1ef9fef8 # Parent 11b7785dd01b0c2e72ef44f6b1b7fa88d2fe7fa0# Parent 6bc766eab0dea3aea866638b17c0420e59df0304 merge diff -r 6bc766eab0de -r 0073f95a1df1 UnitTestsSources/TestStructureSet.cpp --- a/UnitTestsSources/TestStructureSet.cpp Mon Nov 04 22:16:33 2019 +0100 +++ b/UnitTestsSources/TestStructureSet.cpp Tue Nov 05 16:31:08 2019 +0100 @@ -18,6 +18,16 @@ * along with this program. If not, see . **/ +// 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) +#endif + #include "Framework/Toolbox/DicomStructureSetUtils.h" #include "Framework/Toolbox/DicomStructureSet2.h" #include "Framework/Toolbox/DisjointDataSet.h" @@ -5401,3 +5411,4 @@ // BGO_ENABLE_DICOMSTRUCTURESETLOADER2 +