X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3029e588e07095f1e8d8db2a7e475e431964536f..1dab049c9e46d2c484c384679a656b46d0e4f513:/contrib/utils/wxrc/wxrc.cpp diff --git a/contrib/utils/wxrc/wxrc.cpp b/contrib/utils/wxrc/wxrc.cpp index 39550b591c..7b74deabc6 100644 --- a/contrib/utils/wxrc/wxrc.cpp +++ b/contrib/utils/wxrc/wxrc.cpp @@ -64,7 +64,7 @@ private: int retCode; }; -IMPLEMENT_APP_NO_THEMES(XmlResApp) +IMPLEMENT_APP_CONSOLE(XmlResApp) int XmlResApp::OnRun() { @@ -94,7 +94,10 @@ int XmlResApp::OnRun() { case -1: return 0; + #if 0 + // break is unreachable because of return earlier break; + #endif case 0: retCode = 0; @@ -104,12 +107,19 @@ int XmlResApp::OnRun() else CompileRes(); return retCode; + #if 0 + // break is unreachable because of return earlier break; + #endif + #if 0 + // default return moved outside of switch to avoid warning about lack of return in function default: return 1; break; + #endif } + return 1; }