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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user