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)
|
bool wxListCtrl::EnableCheckboxes(bool enable)
|
||||||
{
|
{
|
||||||
LPARAM newStyle = enable ? LVS_EX_CHECKBOXES : 0;
|
(void)ListView_SetExtendedListViewStyleEx(GetHwnd(), LVS_EX_CHECKBOXES,
|
||||||
ListView_SetExtendedListViewStyleEx(GetHwnd(), LVS_EX_CHECKBOXES, newStyle);
|
enable ? LVS_EX_CHECKBOXES : 0);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user