diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 0338827151..ed1076ccfa 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -4755,6 +4755,11 @@ wxColour wxWindowMSW::MSWGetThemeColour(const wchar_t *themeName, themeName, themePart, themeState, themeProperty), hr); } +#else + wxUnusedVar(themeName); + wxUnusedVar(themePart); + wxUnusedVar(themeState); + wxUnusedVar(themeColour); #endif return wxSystemSettings::GetColour(fallback); }