Bug 1460055 - Make strimatch static to fix error with GCC about exception handling mangling. r?aklotz draft
authorChris Pearce <cpearce@mozilla.com>
Wed, 09 May 2018 09:35:03 +1200
changeset 792803 5548db1fc0fb5afef07eec9437de095c26e9ed94
parent 792573 7c83ceac4be6d055bebd870a82b78b76de14b9d7
child 792975 81fe1e08d9a23c8c46ada17182d292d861fb44df
push id109187
push userbmo:cpearce@mozilla.com
push dateTue, 08 May 2018 21:35:40 +0000
reviewersaklotz
bugs1460055
milestone62.0a1
Bug 1460055 - Make strimatch static to fix error with GCC about exception handling mangling. r?aklotz MozReview-Commit-ID: CLBt2Siasdm
toolkit/xre/CmdLineAndEnvUtils.h
--- a/toolkit/xre/CmdLineAndEnvUtils.h
+++ b/toolkit/xre/CmdLineAndEnvUtils.h
@@ -51,17 +51,17 @@ RemoveArg(int& argc, CharT **argv)
   } while (*argv);
 
   --argc;
 }
 
 namespace internal {
 
 template <typename FuncT, typename CharT>
-inline bool
+static inline bool
 strimatch(FuncT aToLowerFn, const CharT* lowerstr, const CharT* mixedstr)
 {
   while(*lowerstr) {
     if (!*mixedstr) return false; // mixedstr is shorter
     if (static_cast<CharT>(aToLowerFn(*mixedstr)) != *lowerstr) return false; // no match
 
     ++lowerstr;
     ++mixedstr;