From 068fa57c39de8afc8ee28b111e0664beb12812ce Mon Sep 17 00:00:00 2001 From: "pschwartau%netscape.com" Date: Thu, 19 Jul 2001 18:57:23 +0000 Subject: [PATCH] Fixed build errors. git-svn-id: svn://10.0.0.236/branches/JS2_DIKDIK_BRANCH@99593 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js2/src/tracer.cpp | 3 +-- mozilla/js2/src/tracer.h | 2 +- mozilla/js2/tests/cpp/DikDik_Shell.cpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/mozilla/js2/src/tracer.cpp b/mozilla/js2/src/tracer.cpp index 4d19ca96416..93134964d34 100644 --- a/mozilla/js2/src/tracer.cpp +++ b/mozilla/js2/src/tracer.cpp @@ -139,8 +139,7 @@ void trace_dump(JavaScript::Formatter& f) namespace JavaScript { namespace Shell { - -static void do_dikdik(Formatter &f) +void do_dikdik(JavaScript::Formatter &f) { diff --git a/mozilla/js2/src/tracer.h b/mozilla/js2/src/tracer.h index 51152ba94be..9cf7c4c5fed 100644 --- a/mozilla/js2/src/tracer.h +++ b/mozilla/js2/src/tracer.h @@ -39,6 +39,6 @@ void trace_alloc(char *owner, size_t s, void *p); void trace_release(char *owner, void *p); void trace_dump(JavaScript::Formatter& f); - +void do_dikdik(JavaScript::Formatter &f); #endif diff --git a/mozilla/js2/tests/cpp/DikDik_Shell.cpp b/mozilla/js2/tests/cpp/DikDik_Shell.cpp index a42e92930c8..0e603c69107 100644 --- a/mozilla/js2/tests/cpp/DikDik_Shell.cpp +++ b/mozilla/js2/tests/cpp/DikDik_Shell.cpp @@ -126,7 +126,7 @@ static JSValue debug(Context *cx, const JSValue& /*thisValue*/, JSValue * /*argv return kUndefinedValue; } -static JSValue trace(Context *cx, const JSValue& /*thisValue*/, JSValue * /*argv*/, uint32 /*argc*/) +static JSValue trace(Context */*cx*/, const JSValue& /*thisValue*/, JSValue * /*argv*/, uint32 /*argc*/) { gTraceFlag = true; stdOut << "Will report allocation stats\n";