Bug 850833 - Fix unused function warning. r=bustage CLOSED TREE
authorBenoit Girard <b56girard@gmail.com>
Thu, 14 Mar 2013 18:10:18 -0400
changeset 124832 9d96ddb6f022fc6331dc509d6516f5b0c9d382af
parent 124831 828162ad3ab0215b02616eeda01e2aa22365b609
child 124833 3e1241c6d2ced86d238f08d7573b2cfdaa53747c
push id24632
push userb56girard@gmail.com
push dateThu, 14 Mar 2013 22:10:43 +0000
treeherdermozilla-inbound@9d96ddb6f022 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs850833
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 850833 - Fix unused function warning. r=bustage CLOSED TREE
tools/profiler/TableTicker2.cpp
--- a/tools/profiler/TableTicker2.cpp
+++ b/tools/profiler/TableTicker2.cpp
@@ -672,17 +672,17 @@ std::ostream& operator<<(std::ostream& s
   } else if (entry.mTagName == 'd') {
     // TODO implement 'd' tag for text profile
   } else {
     stream << entry.mTagName << "-" << entry.mTagData << "\n";
   }
   return stream;
 }
 
-static const char* name_UnwMode(UnwMode m)
+static inline const char* name_UnwMode(UnwMode m)
 {
   switch (m) {
     case UnwINVALID:  return "invalid";
     case UnwNATIVE:   return "native";
     case UnwPSEUDO:   return "pseudo";
     case UnwCOMBINED: return "combined";
     default:          return "??name_UnwMode??";
   }