From: Paul Cornett Date: Thu, 7 Jun 2012 05:13:19 +0000 (+0000) Subject: fix warnings about unreachable return statements X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ecdfd095161c6a759bf2929b0d67bd400723ab52?ds=inline fix warnings about unreachable return statements git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index ca611d155f..49a50d9e69 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -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 ) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 41f3947cfa..4f9ce50f42 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -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 } // ----------------------------------------------------------------------------