Index: src/src/main.cpp
===================================================================
--- a/src/src/main.cpp	(revision 11990)
+++ b/src/src/main.cpp	(revision 11991)
@@ -2680,8 +2680,6 @@
     else
     {
         wxBusyCursor useless;
-        wxPaintEvent e;
-        ProcessEvent(e);
         for (unsigned int i = 0; i < files.GetCount(); ++i)
           success &= OpenGeneric(files[i]);
     }
Index: src/src/watchesdlg.cpp
===================================================================
--- a/src/src/watchesdlg.cpp	(revision 11990)
+++ b/src/src/watchesdlg.cpp	(revision 11991)
@@ -103,8 +103,7 @@
                                   cb_unused const wxPoint& pos,
                                   cb_unused const wxSize& sz) const override
     {
-        wxPGWindowList const list;
-        return list;
+        return wxPGWindowList(nullptr, nullptr);
     }
     void UpdateControl(cb_unused wxPGProperty* property, cb_unused wxWindow* ctrl) const override {}
     bool OnEvent(cb_unused wxPropertyGrid* propgrid, cb_unused wxPGProperty* property,
