X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/84bdb0d8d7d7fe3d7cd6a2e5f50ee247ce2af5df..1146983c7be03c3b0d617b983625b11f693cefdb:/src/msw/main.cpp diff --git a/src/msw/main.cpp b/src/msw/main.cpp index e393c80815..173e046078 100644 --- a/src/msw/main.cpp +++ b/src/msw/main.cpp @@ -219,8 +219,11 @@ int wxEntry(int& argc, wxChar **argv) { wxFatalExit(); - // this code is unreachable but put it here to suppress warnings +#if !defined(_MSC_VER) || defined(__WXDEBUG__) || (defined(_MSC_VER) && _MSC_VER <= 1200) + // this code is unreachable but put it here to suppress warnings in some compilers + // and disable for others to supress warnings too return -1; +#endif // !__VISUALC__ in release build } }