]> git.saurik.com Git - wxWidgets.git/commitdiff
fix warnings about unreachable return statements
authorPaul Cornett <paulcor@bullseye.com>
Thu, 7 Jun 2012 05:13:19 +0000 (05:13 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 7 Jun 2012 05:13:19 +0000 (05:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/graphicc.cpp
src/gtk/window.cpp

index ca611d155fab1b1199364b0b426fd0138a7c997c..49a50d9e694229513bfe10e7779abfd058ba121b 100644 (file)
@@ -2410,9 +2410,10 @@ wxGraphicsContext * wxCairoRenderer::CreateMeasuringContext()
     ENSURE_LOADED_OR_RETURN(NULL);
 #ifdef __WXGTK__
     return CreateContextFromNativeWindow(gdk_get_default_root_window());
-#endif
+#else
     return NULL;
     // TODO
+#endif
 }
 
 wxGraphicsContext * wxCairoRenderer::CreateContext( wxWindow* window )
index 41f3947cfa85c564c264f5d6c207b4ad1644b53b..4f9ce50f42ab0413d954e277e9f1db3c03cb7cd9 100644 (file)
@@ -4151,9 +4151,9 @@ bool wxWindowGTK::IsTransparentBackgroundSupported(wxString* reason) const
         *reason = _("This program was compiled with a too old version of GTK+, "
                     "please rebuild with GTK+ 2.12 or newer.");
     }
-#endif // wxGTK_HAS_COMPOSITING_SUPPORT/!wxGTK_HAS_COMPOSITING_SUPPORT
 
     return false;
+#endif // wxGTK_HAS_COMPOSITING_SUPPORT/!wxGTK_HAS_COMPOSITING_SUPPORT
 }
 
 // ----------------------------------------------------------------------------