From 07670667d97edb9e6002d1f1cc4ed435d7cef5fe Mon Sep 17 00:00:00 2001 From: David Costanzo Date: Wed, 20 Oct 2021 15:23:52 +0200 Subject: [PATCH] Fix gcc 11 -Wzero-as-null-pointer-constant in wxMSW wxImageList This warning was introduced by the recent 999340f288 (Check that wxImageList::Create() is not called more than once, 2021-10-17), fix it by using NULL for HIMAGELIST which is a pointer internally. Closes #19298. --- include/wx/msw/imaglist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/msw/imaglist.h b/include/wx/msw/imaglist.h index 2291407a2f..fde871c32e 100644 --- a/include/wx/msw/imaglist.h +++ b/include/wx/msw/imaglist.h @@ -32,7 +32,7 @@ public: // from icons), and the initial size of the list. wxImageList(int width, int height, bool mask = true, int initialCount = 1) { - m_hImageList = 0; + m_hImageList = NULL; Create(width, height, mask, initialCount); } virtual ~wxImageList();