Fix harmless warning in wxMSW wxListCtrl checkboxes code

Explicitly suppress a gcc warning about the value returned by
ListView_SetExtendedListViewStyleEx() being not used.

See https://github.com/wxWidgets/wxWidgets/pull/153
This commit is contained in:
Vadim Zeitlin
2016-02-06 19:12:25 +01:00
parent 7a8684a8bd
commit 9a0333496b

View File

@@ -1219,8 +1219,8 @@ bool wxListCtrl::HasCheckboxes() const
bool wxListCtrl::EnableCheckboxes(bool enable)
{
LPARAM newStyle = enable ? LVS_EX_CHECKBOXES : 0;
ListView_SetExtendedListViewStyleEx(GetHwnd(), LVS_EX_CHECKBOXES, newStyle);
(void)ListView_SetExtendedListViewStyleEx(GetHwnd(), LVS_EX_CHECKBOXES,
enable ? LVS_EX_CHECKBOXES : 0);
return true;
}