Silenced unused value warning in 64bit builds with GCC.

This commit is contained in:
Maarten Bent 2016-01-15 20:48:39 +01:00
parent 5326132c21
commit c57c281c44

View File

@ -1219,8 +1219,9 @@ bool wxListCtrl::HasCheckboxes() const
void wxListCtrl::EnableCheckboxes(bool enable)
{
DWORD cbStyle = enable ? LVS_EX_CHECKBOXES : 0;
ListView_SetExtendedListViewStyleEx(GetHwnd(), LVS_EX_CHECKBOXES, cbStyle);
LPARAM newStyle = enable ? LVS_EX_CHECKBOXES : 0;
DWORD oldStyle = ListView_SetExtendedListViewStyleEx(GetHwnd(), LVS_EX_CHECKBOXES, newStyle);
wxUnusedVar(oldStyle);
}
void wxListCtrl::CheckItem(long item, bool state)