Bug 945131 - Fix DMD build by using const char*. r=njn
authorMarkus Stange <mstange@themasta.com>
Mon, 02 Dec 2013 23:13:20 +0100
changeset 173068 b906f5c777580f414dfe3cee74dcc07921195e02
parent 173067 f0144998bab05494ca3cb9c4d12a41738488d431
child 173069 86d7569cac8ac00065c9dbbdeaf19c09123fd932
push id3224
push userlsblakk@mozilla.com
push dateTue, 04 Feb 2014 01:06:49 +0000
treeherdermozilla-beta@60c04d0987f1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnjn
bugs945131
milestone28.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 945131 - Fix DMD build by using const char*. r=njn DONTBUILD because NPOTB
memory/replace/dmd/DMD.cpp
--- a/memory/replace/dmd/DMD.cpp
+++ b/memory/replace/dmd/DMD.cpp
@@ -710,17 +710,17 @@ public:
 
     uintptr_t entryPc = (uintptr_t)(entry.mPc);
     // Sometimes we get nothing useful.  Just print "???" for the entire entry
     // so that fix-linux-stack.pl doesn't complain about an empty filename.
     if (!entry.mFunction && !entry.mLibrary[0] && entry.mLOffset == 0) {
       W("   ??? 0x%x\n", entryPc);
     } else {
       // Use "???" for unknown functions.
-      char* entryFunction = entry.mFunction ? entry.mFunction : "???";
+      const char* entryFunction = entry.mFunction ? entry.mFunction : "???";
       if (entry.mFileName) {
         // On Windows we can get the filename and line number at runtime.
         W("   %s (%s:%lu) 0x%x\n",
           entryFunction, entry.mFileName, entry.mLineNo, entryPc);
       } else {
         // On Linux and Mac we cannot get the filename and line number at
         // runtime, so we print the offset in a form that fix-linux-stack.pl and
         // fix_macosx_stack.py can post-process.