From: Mattia Barbon Date: Sun, 3 Aug 2003 20:11:52 +0000 (+0000) Subject: Fix "Statement with no effect" warning. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/840015f0e3c572bdf3cc904ee9e57040bf6eefd3 Fix "Statement with no effect" warning. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index 5a858d1a57..9f8021bf01 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -822,7 +822,11 @@ wxColour wxNotebook::GetThemeBackgroundColour() } // Windows only: attempts to apply the UX theme page background to this page +#if wxUSE_UXTHEME void wxNotebook::ApplyThemeBackground(wxWindow* window, const wxColour& colour) +#else +void wxNotebook::ApplyThemeBackground(wxWindow*, const wxColour&) +#endif { #if wxUSE_UXTHEME // Don't set the background for buttons since this will @@ -852,9 +856,6 @@ void wxNotebook::ApplyThemeBackground(wxWindow* window, const wxColour& colour) wxWindow *child = node->GetData(); ApplyThemeBackground(child, colour); } -#else - window; - colour; #endif }