Added some #ifdef JAVA guards to remove compile warnings.

Thanks go to rick@spacey.net (Rick Osborne) for finding these.
This commit is contained in:
mccabe 1998-04-29 02:39:43 +00:00
Родитель 349aea1957
Коммит 225bf8978b
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -312,7 +312,9 @@ native_netscape_javascript_JSObject_removeMember(
JSContext *cx;
JSObject *jso;
JSSavedState saved;
#ifdef JAVA /* only referenced if defined */
const char *cstr;
#endif
if (!enterJS(env, self, &cx, &jso, &saved))
return;
@ -335,8 +337,9 @@ native_netscape_javascript_JSObject_removeMember(
/* PR_LOG(Moja, debug,
("JSObject.removeMember(%s)\n", cstr)); */
#ifdef JAVA /* only referenced if defined */
do_exit:
#endif
exitJS(env, self, cx, jso, &saved);
return;
}
@ -516,8 +519,10 @@ native_netscape_javascript_JSObject_toString(
JSContext *cx;
JSObject *jso;
JSSavedState saved;
#ifdef JAVA /* only referenced if defined */
JSString *jsstr;
char *cstr;
#endif
struct java_lang_String *ret;
if (!enterJS(env, self, &cx, &jso, &saved))