]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxrc/wxrc.cpp
fixed modal dialogs after event loop change
[wxWidgets.git] / utils / wxrc / wxrc.cpp
index 8bf7f2ef0afd9db7291c82b424f4592e195e3ef9..7b74deabc69e2a61ff05de7c8ec4da8f3fca241a 100644 (file)
@@ -64,7 +64,7 @@ private:
     int retCode;
 };
 
-IMPLEMENT_APP(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;
 }