From c5b05282994cd72f53853ecbd39c5e6d7dca2c12 Mon Sep 17 00:00:00 2001 From: "waldemar%netscape.com" Date: Thu, 16 Sep 1999 07:08:49 +0000 Subject: [PATCH] Fixed Mac warnings --- js/src/js.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/src/js.c b/js/src/js.c index bb7c7737db64..9c572edd5eb5 100644 --- a/js/src/js.c +++ b/js/src/js.c @@ -842,7 +842,7 @@ Tracing(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) return JS_TRUE; } -int +static int DumpAtom(JSHashEntry *he, int i, void *arg) { FILE *fp = arg; @@ -859,7 +859,7 @@ DumpAtom(JSHashEntry *he, int i, void *arg) return HT_ENUMERATE_NEXT; } -int +static int DumpSymbol(JSHashEntry *he, int i, void *arg) { FILE *fp = arg; @@ -875,7 +875,7 @@ DumpSymbol(JSHashEntry *he, int i, void *arg) extern JS_FRIEND_DATA(JSScopeOps) js_list_scope_ops; -void +static void DumpScope(JSContext *cx, JSObject *obj, JSHashEnumerator dump, FILE *fp) { JSScope *scope; @@ -897,8 +897,8 @@ DumpScope(JSContext *cx, JSObject *obj, JSHashEnumerator dump, FILE *fp) } /* These are callable from gdb. */ -void Dsym(JSSymbol *sym) { if (sym) DumpSymbol(&sym->entry, 0, gErrFile); } -void Datom(JSAtom *atom) { if (atom) DumpAtom(&atom->entry, 0, gErrFile); } +static void Dsym(JSSymbol *sym) { if (sym) DumpSymbol(&sym->entry, 0, gErrFile); } +static void Datom(JSAtom *atom) { if (atom) DumpAtom(&atom->entry, 0, gErrFile); } static JSBool DumpStats(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)