mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
fix warning
This commit is contained in:
parent
5da2cb9d67
commit
ca20b32c35
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user