diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 4ef33b5262..99fec5e45f 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -5262,6 +5262,7 @@ wxGenericListCtrl::GetClassDefaultAttributes(wxWindowVariant variant) // Use the same color scheme as wxListBox return wxListBox::GetClassDefaultAttributes(variant); #else + wxUnusedVar(variant); wxVisualAttributes attr; attr.colFg = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT); attr.colBg = wxSystemSettings::GetColour(wxSYS_COLOUR_LISTBOX);