diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index 1c7c497c2ee..5a0411921a1 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -16,7 +16,9 @@ #include #include #include +#if wxCHECK_VERSION(3, 1, 6) // wxWidets-3.1.6 or higher #include +#endif #include #include #include @@ -59,6 +61,7 @@ #include #include +#if wxCHECK_VERSION(3, 1, 6) // wxWidets-3.1.6 or higher void unreadVariable_wxBitmapBundle(const wxBitmap &bmp, const wxIcon &icon, const wxImage &image, const char *const * xpm, const wxBitmapBundle &bundle) { // cppcheck-suppress unusedVariable @@ -74,6 +77,7 @@ void unreadVariable_wxBitmapBundle(const wxBitmap &bmp, const wxIcon &icon, cons // cppcheck-suppress unreadVariable wxBitmapBundle f(bundle); } +#endif void unusedVariable_wxIconLocation() {