Ignore:
Timestamp:
Dec 15, 2011, 5:12:45 PM (13 years ago)
Author:
[email protected]
Message:

Warnings fixes in Interpreter.cpp and PrivateExecute.cpp
https://bugs.webkit.org/show_bug.cgi?id=74624

Patch by Andy Wingo <[email protected]> on 2011-12-15
Reviewed by Darin Adler.

  • interpreter/Interpreter.cpp:

(JSC::Interpreter::privateExecute): Fix variables unused in
release mode.

  • wtf/ParallelJobsGeneric.cpp:

(WTF::ParallelEnvironment::ParallelEnvironment): Fix
signed/unsigned comparison warning, with a cast.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp

    r102709 r103003  
    26562656        ScopeChainIterator iter = scopeChain->begin();
    26572657        ScopeChainIterator end = scopeChain->end();
    2658         ASSERT(iter != end);
     2658        ASSERT_UNUSED(end, iter != end);
    26592659        ASSERT(codeBlock == callFrame->codeBlock());
    26602660        bool checkTopLevel = codeBlock->codeType() == FunctionCode && codeBlock->needsFullScopeChain();
    26612661        ASSERT(skip || !checkTopLevel);
    2662     if (checkTopLevel && skip--) {
     2662        if (checkTopLevel && skip--) {
    26632663            if (callFrame->r(codeBlock->activationRegister()).jsValue())
    26642664                ++iter;
     
    26662666        while (skip--) {
    26672667            ++iter;
    2668             ASSERT(iter != end);
     2668            ASSERT_UNUSED(end, iter != end);
    26692669        }
    26702670        ASSERT((*iter)->isVariableObject());
     
    26872687        ScopeChainIterator end = scopeChain->end();
    26882688        ASSERT(codeBlock == callFrame->codeBlock());
    2689         ASSERT(iter != end);
     2689        ASSERT_UNUSED(end, iter != end);
    26902690        bool checkTopLevel = codeBlock->codeType() == FunctionCode && codeBlock->needsFullScopeChain();
    26912691        ASSERT(skip || !checkTopLevel);
    2692     if (checkTopLevel && skip--) {
     2692        if (checkTopLevel && skip--) {
    26932693            if (callFrame->r(codeBlock->activationRegister()).jsValue())
    26942694                ++iter;
     
    26962696        while (skip--) {
    26972697            ++iter;
    2698             ASSERT(iter != end);
     2698            ASSERT_UNUSED(end, iter != end);
    26992699        }
    27002700
Note: See TracChangeset for help on using the changeset viewer.