summaryrefslogblamecommitdiff
path: root/user/firefox-esr/gcc89074.patch
blob: e9713193c336df29b0d9ae2cdf17b703ed6780de (plain) (tree)























                                                                                           
Upstream-URL: https://bugzilla.mozilla.org/show_bug.cgi?id=1688122
Upstream-URL: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89074

Valid code, but only used for debugging.  GCC 12 fixed this.
Moz upstream not interested.

--- firefox-91.13.0/dom/base/nsTreeSanitizer.cpp.old	2022-08-15 13:04:32.000000000 -0500
+++ firefox-91.13.0/dom/base/nsTreeSanitizer.cpp	2022-11-19 00:42:15.892580023 -0600
@@ -632,15 +632,6 @@
 constexpr const nsStaticAtom* const kURLAttributesSVG[] = {nsGkAtoms::href,
                                                            nullptr};
 
-static_assert(AllOf(std::begin(kURLAttributesSVG), std::end(kURLAttributesSVG),
-                    [](auto aURLAttributeSVG) {
-                      return AnyOf(std::begin(kAttributesSVG),
-                                   std::end(kAttributesSVG),
-                                   [&](auto aAttributeSVG) {
-                                     return aAttributeSVG == aURLAttributeSVG;
-                                   });
-                    }));
-
 const nsStaticAtom* const kElementsMathML[] = {
     nsGkAtoms::abs_,                  // abs
     nsGkAtoms::_and,                  // and