mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
fix trivial build warnings, unused variables
This commit is contained in:
parent
8f9b86dd92
commit
03d87a22be
@ -137,10 +137,10 @@ morkPool::ClosePool(morkEnv* ev) // called by CloseMorkNode();
|
||||
|
||||
nsIMdbHeap* heap = mPool_Heap;
|
||||
nsIMdbEnv* mev = ev->AsMdbEnv();
|
||||
morkLink* link;
|
||||
morkLink* aLink;
|
||||
morkDeque* d = &mPool_FreeHandleFrames;
|
||||
while ( (link = d->RemoveFirst()) != 0 )
|
||||
heap->Free(mev, link);
|
||||
while ( (aLink = d->RemoveFirst()) != 0 )
|
||||
heap->Free(mev, aLink);
|
||||
|
||||
this->MarkShut();
|
||||
}
|
||||
@ -162,10 +162,10 @@ morkPool::NewHandle(morkEnv* ev, mork_size inSize, morkZone* ioZone)
|
||||
void* newBlock = 0;
|
||||
if ( inSize <= sizeof(morkHandleFrame) )
|
||||
{
|
||||
morkLink* link = mPool_FreeHandleFrames.RemoveFirst();
|
||||
if ( link )
|
||||
morkLink* firstLink = mPool_FreeHandleFrames.RemoveFirst();
|
||||
if ( firstLink )
|
||||
{
|
||||
newBlock = link;
|
||||
newBlock = firstLink;
|
||||
if ( mPool_FreeFramesCount )
|
||||
--mPool_FreeFramesCount;
|
||||
else
|
||||
@ -193,8 +193,8 @@ morkPool::ZapHandle(morkEnv* ev, morkHandleFace* ioHandle)
|
||||
{
|
||||
if ( ioHandle )
|
||||
{
|
||||
morkLink* link = (morkLink*) ioHandle;
|
||||
mPool_FreeHandleFrames.AddLast(link);
|
||||
morkLink* handleLink = (morkLink*) ioHandle;
|
||||
mPool_FreeHandleFrames.AddLast(handleLink);
|
||||
++mPool_FreeFramesCount;
|
||||
}
|
||||
}
|
||||
|
@ -321,8 +321,8 @@ morkSorting::NewSortingRowCursor(morkEnv* ev, mork_pos inRowPos)
|
||||
morkSortingRowCursor* outCursor = 0;
|
||||
if ( ev->Good() )
|
||||
{
|
||||
nsIMdbHeap* heap = mSorting_Table->mTable_Store->mPort_Heap;
|
||||
morkSortingRowCursor* cursor = 0;
|
||||
// nsIMdbHeap* heap = mSorting_Table->mTable_Store->mPort_Heap;
|
||||
// morkSortingRowCursor* cursor = 0;
|
||||
|
||||
// $$$$$
|
||||
// morkSortingRowCursor* cursor = new(*heap, ev)
|
||||
|
@ -292,7 +292,6 @@ mork_bool morkStore::DoPreferLargeOverCompressCommit(morkEnv* ev)
|
||||
// true when mStore_CanWriteIncremental && store has file large enough
|
||||
{
|
||||
nsIMdbFile* file = mStore_File;
|
||||
nsIMdbEnv* menv = ev->AsMdbEnv();
|
||||
if ( file && mStore_CanWriteIncremental )
|
||||
{
|
||||
mdb_pos fileEof = 0;
|
||||
@ -307,7 +306,6 @@ mork_percent morkStore::PercentOfStoreWasted(morkEnv* ev)
|
||||
{
|
||||
mork_percent outPercent = 0;
|
||||
nsIMdbFile* file = mStore_File;
|
||||
nsIMdbEnv* menv = ev->AsMdbEnv();
|
||||
|
||||
if ( file )
|
||||
{
|
||||
|
@ -2013,7 +2013,7 @@ morkWriter::PutRow(morkEnv* ev, morkRow* ioRow)
|
||||
mWriter_LineSize = stream->PutIndent(ev, 0); // no indent
|
||||
}
|
||||
|
||||
mork_rid rid = roid->mOid_Id;
|
||||
// mork_rid rid = roid->mOid_Id;
|
||||
*p++ = '['; // start row punct=1
|
||||
mork_size punctSize = 9; // counting "{ /*r=*/ "
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user