From 9a0333496b2f8a74e264e9aea7282e41310a4efc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 6 Feb 2016 19:12:25 +0100 Subject: [PATCH] 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 --- src/msw/listctrl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 348d6487ba..dfc8128eb6 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -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; }