]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/utils/wxrc/wxrc.cpp
added .chm support for Unix (Markus Sinner)
[wxWidgets.git] / contrib / utils / wxrc / wxrc.cpp
index e914e20c3c597a3481660588ac39c07a093509e9..79362762e17317088ab595fa905964dfc7d6a97f 100644 (file)
     #pragma hdrstop
 #endif
 
     #pragma hdrstop
 #endif
 
-// for all others, include the necessary headers (this file is usually all you
-// need because it includes almost all "standard" wxWindows headers
+// for all others, include the necessary headers
 #ifndef WX_PRECOMP
 #ifndef WX_PRECOMP
-    #include "wx/wx.h"
+    #include "wx/app.h"
+    #include "wx/log.h"
 #endif
 
 #include "wx/cmdline.h"
 #endif
 
 #include "wx/cmdline.h"
@@ -94,7 +94,10 @@ int XmlResApp::OnRun()
     {
         case -1:
             return 0;
     {
         case -1:
             return 0;
+            #if 0
+            // break is unreachable because of return earlier
             break;
             break;
+            #endif
 
         case 0:
             retCode = 0;
 
         case 0:
             retCode = 0;
@@ -104,12 +107,19 @@ int XmlResApp::OnRun()
             else
                 CompileRes();
             return retCode;
             else
                 CompileRes();
             return retCode;
+            #if 0
+            // break is unreachable because of return earlier
             break;
             break;
+            #endif
 
 
+        #if 0
+        // default return moved outside of switch to avoid warning about lack of return in function
         default:
             return 1;
             break;
         default:
             return 1;
             break;
+        #endif
     }
     }
+    return 1;
 }
 
 
 }