From 7c9215f958258fa78df0e8e2994d69ce5f8d82b6 Mon Sep 17 00:00:00 2001 From: Job Bautista Date: Wed, 5 Apr 2023 13:11:44 +0800 Subject: [PATCH 1/2] PR #2189 - Follow-up: Fix build bustage with GCC 9 related to checkExportedNamesForDeclaration --- js/src/frontend/Parser.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/js/src/frontend/Parser.cpp b/js/src/frontend/Parser.cpp index 1f92256a33..d5cdd898c2 100644 --- a/js/src/frontend/Parser.cpp +++ b/js/src/frontend/Parser.cpp @@ -5235,6 +5235,33 @@ Parser::checkExportedName(JSAtom* exportName) return false; } +// Because all these template methods call each other, let's declare them first before +// defining them to prevent a GCC compiler error in specialization of member function +// template after instantiation. +template<> +bool +Parser::checkExportedNamesForDeclaration(ParseNode* node); + +template<> +bool +Parser::checkExportedNamesForDeclaration(Node node); + +template<> +bool +Parser::checkExportedNamesForArrayBinding(ListNode* array); + +template<> +inline bool +Parser::checkExportedNamesForArrayBinding(ListNodeType array); + +template<> +bool +Parser::checkExportedNamesForObjectBinding(ListNode* obj); + +template<> +inline bool +Parser::checkExportedNamesForObjectBinding(ListNodeType obj); + template<> bool Parser::checkExportedNamesForArrayBinding(ListNode* array) From 3c3456cc61923f5f5d1d4c690e057998c44e0601 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Wed, 5 Apr 2023 00:54:29 -0500 Subject: [PATCH 2/2] No Issue - Fix FreeBSD build failure with WebRTC enabled. --- media/mtransport/third_party/nICEr/src/stun/stun.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/mtransport/third_party/nICEr/src/stun/stun.h b/media/mtransport/third_party/nICEr/src/stun/stun.h index 8e5a607505..0a415d38c0 100644 --- a/media/mtransport/third_party/nICEr/src/stun/stun.h +++ b/media/mtransport/third_party/nICEr/src/stun/stun.h @@ -41,7 +41,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #ifndef LINUX #include -#if !defined(__OpenBSD__) && !defined(__NetBSD__) +#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__FreeBSD__) #include #endif #include