Mercurial > hg > orthanc-stone
diff UnitTestsSources/TestStructureSet.cpp @ 1120:11b7785dd01b
This cpp file leads the optimizer bugging off out of the Solar System
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 05 Nov 2019 16:30:45 +0100 |
parents | 29f5f2031310 |
children | 1b47659f6a9f |
line wrap: on
line diff
--- a/UnitTestsSources/TestStructureSet.cpp Mon Nov 04 15:11:44 2019 +0100 +++ b/UnitTestsSources/TestStructureSet.cpp Tue Nov 05 16:30:45 2019 +0100 @@ -18,6 +18,16 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. **/ +// 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 +