]> git.saurik.com Git - wxWidgets.git/commitdiff
disable an apparently harmless VC++ warning about /EHa being required with _set_se_tr...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 17 Jan 2005 02:01:33 +0000 (02:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 17 Jan 2005 02:01:33 +0000 (02:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/main.cpp

index aaa5d051ae872417cd01c92aac33b50d2527f5a7..89c330a35dcc45494faffb596d1003fee382506e 100644 (file)
@@ -128,6 +128,14 @@ bool wxHandleFatalExceptions(bool doit)
     // if the exception is not handled elsewhere, we have to also call it from
     // a special SEH translator function which is called by VC CRT when a Win32
     // exception occurs
+
+    // this warns that /EHa (async exceptions) should be used when using
+    // _set_se_translator but, in fact, this doesn't seem to change anything
+    // with VC++ up to 7.1 -- to be confirmed with VC++ 8
+    #if _MSC_VER <= 1310
+        #pragma warning(disable:4535)
+    #endif
+
     _set_se_translator(doit ? wxSETranslator : NULL);
 #endif