changeset 1132:58799b7317fa

merge
author Alain Mazy <alain@mazy.be>
date Wed, 06 Nov 2019 10:47:05 +0100
parents 4663f158c748 (current diff) 45df56448b2a (diff)
children 1a73f852810a 76705b430c78
files
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 <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)
+#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
 
 
+