From 7f307e520026f955c15e18fe1be1c0481b68d8ce Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 22 Feb 2014 11:36:48 +0100 Subject: [PATCH] + Minor fix in test feature --- src/App/FeatureTest.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/App/FeatureTest.cpp b/src/App/FeatureTest.cpp index 6621aae20..6a7692443 100644 --- a/src/App/FeatureTest.cpp +++ b/src/App/FeatureTest.cpp @@ -33,6 +33,10 @@ #include "Material.h" #include "Material.h" +#ifdef _MSC_VER +#pragma warning( disable : 4700 ) +#endif + #define new DEBUG_CLIENTBLOCK using namespace App; @@ -109,6 +113,7 @@ FeatureTest::~FeatureTest() { } + DocumentObjectExecReturn *FeatureTest::execute(void) { @@ -124,7 +129,7 @@ DocumentObjectExecReturn *FeatureTest::execute(void) case 3: *i=0;printf("%i",*i);break; // seg-vault case 4: j=0; printf("%i",1/j); break; // int devision by zero case 5: f=0.0; printf("%f",1/f); break; // float devision by zero - case 6: s = malloc(3600000000);break; // float devision by zero + case 6: s = malloc(3600000000);break; // out-of-memory } ExecCount.setValue(ExecCount.getValue() + 1);