From 0d18e12e797d96303cedf49c62fc9bcf404d2afb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 22 Jul 2020 16:35:55 +0200 Subject: [PATCH] Avoid -Wconversion-null from MinGW-w64 in wxListBox code Explicitly cast the pointer to LPARAM instead of implicitly casting NULL to it. No real changes. --- src/msw/listbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/listbox.cpp b/src/msw/listbox.cpp index 4ccef0529f..3291792888 100644 --- a/src/msw/listbox.cpp +++ b/src/msw/listbox.cpp @@ -617,7 +617,7 @@ void wxListBox::SetHorizontalExtent(const wxString& s) bool wxListBox::MSWSetTabStops(const wxVector& tabStops) { return SendMessage(GetHwnd(), LB_SETTABSTOPS, (WPARAM)tabStops.size(), - tabStops.empty() ? NULL : (LPARAM)&tabStops[0]) == TRUE; + (LPARAM)(tabStops.empty() ? NULL : &tabStops[0])) == TRUE; } wxSize wxListBox::DoGetBestClientSize() const