]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/topluniv.cpp
don't do anything non trivial (like creating wxFontMapper) in ctors of global objects
[wxWidgets.git] / src / univ / topluniv.cpp
index b3c6585e3e9b2c628116a6bb5acc0f04770a664b..959ac9f713ba24544e803b2868109ee2ee229947 100644 (file)
@@ -14,7 +14,7 @@
 // headers
 // ----------------------------------------------------------------------------
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "univtoplevel.h"
 #endif
 
@@ -354,7 +354,10 @@ static bool wxGetResizingCursor(long hitTestResult, wxCursor& cursor)
                 break;
             default:
                 return FALSE;
+                #if 0
+                // not rachable due to earlier return
                 break;
+                #endif
         }
         return TRUE;
     }