# HG changeset patch # User Alain Mazy # Date 1573033625 -3600 # Node ID 58799b7317fa370103bddeceda302d63ad82b794 # Parent 4663f158c748610aeb7ff6453cdad8f07ff72adf# Parent 45df56448b2ac681ee865593395d8d398b0cc5fb merge diff -r 4663f158c748 -r 58799b7317fa UnitTestsSources/TestStructureSet.cpp --- a/UnitTestsSources/TestStructureSet.cpp Wed Nov 06 10:46:46 2019 +0100 +++ b/UnitTestsSources/TestStructureSet.cpp Wed Nov 06 10:47:05 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) +#ifdef _MSC_VER +# 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 +