Blame gcc11_1.patch

Scott Talbert 2ebf89
From 858248d055794928f0e26e07ea68fd67f9ea9e3f Mon Sep 17 00:00:00 2001
Scott Talbert 2ebf89
From: Scott Talbert <swt@techie.net>
Scott Talbert 2ebf89
Date: Wed, 21 Apr 2021 19:08:13 -0400
Scott Talbert 2ebf89
Subject: [PATCH] Fix declaration shadow warning in wxHtmlHelpFrame
Scott Talbert 2ebf89
Scott Talbert 2ebf89
Fixes this warning:
Scott Talbert 2ebf89
In file included from ../../include/wx/html/helpctrl.h:19,
Scott Talbert 2ebf89
                 from ../../include/wx/help.h:27,
Scott Talbert 2ebf89
                 from ../../include/wx/cshelp.h:18,
Scott Talbert 2ebf89
                 from ../../tests/allheaders.h:85,
Scott Talbert 2ebf89
                 from ../../tests/allheaders.cpp:435:
Scott Talbert 2ebf89
../../include/wx/html/helpfrm.h:74:50: error: declaration of 'wxWindowID' shadows a global declaration [-Werror=shadow]
Scott Talbert 2ebf89
   74 |     wxHtmlHelpFrame(wxWindow* parent, wxWindowID wxWindowID,
Scott Talbert 2ebf89
      |                                       ~~~~~~~~~~~^~~~~~~~~~
Scott Talbert 2ebf89
In file included from ../../include/wx/wxprec.h:12,
Scott Talbert 2ebf89
                 from ../../tests/testprec.h:4,
Scott Talbert 2ebf89
                 from ../../tests/allheaders.cpp:433:
Scott Talbert 2ebf89
../../include/wx/defs.h:1965:13: note: shadowed declaration is here
Scott Talbert 2ebf89
 1965 | typedef int wxWindowID;
Scott Talbert 2ebf89
      |             ^~~~~~~~~~
Scott Talbert 2ebf89
Scott Talbert 2ebf89
See https://trac.wxwidgets.org/ticket/19153
Scott Talbert 2ebf89
---
Scott Talbert 2ebf89
 include/wx/html/helpfrm.h | 2 +-
Scott Talbert 2ebf89
 1 file changed, 1 insertion(+), 1 deletion(-)
Scott Talbert 2ebf89
Scott Talbert 2ebf89
diff --git a/include/wx/html/helpfrm.h b/include/wx/html/helpfrm.h
Scott Talbert 2ebf89
index 6b09d0d3dae..ac25907dccc 100644
Scott Talbert 2ebf89
--- a/include/wx/html/helpfrm.h
Scott Talbert 2ebf89
+++ b/include/wx/html/helpfrm.h
Scott Talbert 2ebf89
@@ -71,7 +71,7 @@ class WXDLLIMPEXP_HTML wxHtmlHelpFrame : public wxFrame
Scott Talbert 2ebf89
 
Scott Talbert 2ebf89
 public:
Scott Talbert 2ebf89
     wxHtmlHelpFrame(wxHtmlHelpData* data = NULL) { Init(data); }
Scott Talbert 2ebf89
-    wxHtmlHelpFrame(wxWindow* parent, wxWindowID wxWindowID,
Scott Talbert 2ebf89
+    wxHtmlHelpFrame(wxWindow* parent, wxWindowID id,
Scott Talbert 2ebf89
                     const wxString& title = wxEmptyString,
Scott Talbert 2ebf89
                     int style = wxHF_DEFAULT_STYLE, wxHtmlHelpData* data = NULL
Scott Talbert 2ebf89
 #if wxUSE_CONFIG