fix warning

This commit is contained in:
sspitzer%netscape.com 1999-07-06 22:40:54 +00:00
parent 5da2cb9d67
commit ca20b32c35
5 changed files with 5 additions and 8 deletions

View File

@ -179,7 +179,6 @@ nsJSContext::GetNativeContext()
NS_IMETHODIMP
nsJSContext::InitContext(nsIScriptGlobalObject *aGlobalObject)
{
nsresult result = NS_ERROR_FAILURE;
nsIScriptObjectOwner *owner;
JSObject *global;
nsresult res = aGlobalObject->QueryInterface(kIScriptObjectOwnerIID, (void **)&owner);

View File

@ -311,7 +311,6 @@ PR_STATIC_CALLBACK(JSBool)
NavigatorJavaEnabled(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
{
nsIDOMNavigator *nativeThis = (nsIDOMNavigator*)nsJSUtils::nsGetNativeThis(cx, obj);
JSBool rBool = JS_FALSE;
PRBool nativeRet;
*rval = JSVAL_NULL;

View File

@ -491,7 +491,6 @@ js_SuspendThread(JSThinLock *p)
{
JSFatLock *fl;
JSStatus stat;
int o;
if (p->fat == NULL)
fl = p->fat = allocateFatlock(p);
@ -521,7 +520,6 @@ js_ResumeThread(JSThinLock *p)
{
JSFatLock *fl = p->fat;
JSStatus stat;
int o;
JS_ASSERT(fl != NULL);
JS_ASSERT(fl->susp > 0);
@ -535,8 +533,7 @@ js_ResumeThread(JSThinLock *p)
static void
js_Enqueue(JSThinLock *p, jsword me)
{
jsword o, n, i;
JSFatLock *fl;
jsword o, n;
js_LockGlobal(p);
while (1) {

View File

@ -552,7 +552,8 @@ PRInt32 nsListControlFrame::GetSelectedIndex(nsIFrame *aHitFrame)
// Search the list of option elements looking for a match
PRUint32 length = GetNumberOfOptions();
PRUint32 length;
length = GetNumberOfOptions();
nsIDOMHTMLCollection* options = GetOptions(mContent);
if (nsnull != options) {
PRUint32 numOptions;

View File

@ -552,7 +552,8 @@ PRInt32 nsListControlFrame::GetSelectedIndex(nsIFrame *aHitFrame)
// Search the list of option elements looking for a match
PRUint32 length = GetNumberOfOptions();
PRUint32 length;
length = GetNumberOfOptions();
nsIDOMHTMLCollection* options = GetOptions(mContent);
if (nsnull != options) {
PRUint32 numOptions;