There is no reason to only make it protected for gcc and clang, recent MSVS versions can also give a warning (C5204, which is disabled by default, but makes sense to enable) otherwise. Also remove the comment about obsolete gcc 3.4.5. Closes #19011. Co-Authored-By: Vadim Zeitlin <vadim@wxwidgets.org>