summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/slice2cppe/Gen.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/slice2cppe/Gen.cpp b/cpp/src/slice2cppe/Gen.cpp
index 21bbcf494d3..c3756823601 100644
--- a/cpp/src/slice2cppe/Gen.cpp
+++ b/cpp/src/slice2cppe/Gen.cpp
@@ -239,6 +239,12 @@ Slice::Gen::generate(const UnitPtr& p)
C << "\n#include <IceE/LocalException.h>";
}
+ //
+ // COMPILERFIX: EVC 4. Cannot find a way to work around the
+ // "recursive on all control paths, function will cause runtime
+ // stack overflow" for the exception test, hence we disable the
+ // warning ONLY in the generated code.
+ //
C << "\n";
C << "\n#ifdef _WIN32_WCE";
C << "\n# pragma warning( disable : 4717 )";