From 3a5dc6638b321ead55c2e053499e46cd1bc2cd9c Mon Sep 17 00:00:00 2001 From: "jim_nance%yahoo.com" Date: Thu, 23 Mar 2000 21:40:50 +0000 Subject: [PATCH] Fixed some compiler warnings. This is not part of the default build. git-svn-id: svn://10.0.0.236/trunk@63883 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/tools/jprof/intcnt.cpp | 5 +++-- mozilla/tools/jprof/leaky.cpp | 15 ++++++++------- mozilla/tools/jprof/leaky.h | 6 +++--- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/mozilla/tools/jprof/intcnt.cpp b/mozilla/tools/jprof/intcnt.cpp index 6a8340610e1..4fd84bca757 100644 --- a/mozilla/tools/jprof/intcnt.cpp +++ b/mozilla/tools/jprof/intcnt.cpp @@ -49,9 +49,10 @@ int IntCount::countAdd(int index, int increment) } } + int i; IntPair *tpair = new IntPair[numInts+1]; - for(int i=0; i0; h/=3) { + int mx, i, h; + for(mx=usefulSymbols/9, h=581130733; h>0; h/=3) { if(h=h) && (countArray[rankingTable[j-h]]0; i++) { + for(i=0; i0; i++) { Symbol *sp=&externalSymbols[rankingTable[i]]; sp->cntP.printReport(fp, this); @@ -417,10 +418,10 @@ void leaky::generateReportHTML(FILE *fp, int *countArray, int count) // Cut-N-Paste Shell sort from above. The Ranking Table has already been // populated, so we do not have to reinitialize it. - for(int mx=usefulSymbols/9, h=581130733; h>0; h/=3) { + for(mx=usefulSymbols/9, h=581130733; h>0; h/=3) { if(h=h) && (externalSymbols[rankingTable[j-h]].timerHit\n"); fprintf(fp, "Count Function Name\n"); // Now loop for as long as we have timer hits - for(int i=0; + for(i=0; i0; i++) { Symbol *sp=&externalSymbols[rankingTable[i]]; diff --git a/mozilla/tools/jprof/leaky.h b/mozilla/tools/jprof/leaky.h index 9fb2093a5b3..cd92d29325a 100644 --- a/mozilla/tools/jprof/leaky.h +++ b/mozilla/tools/jprof/leaky.h @@ -73,12 +73,12 @@ struct leaky { malloc_log_entry* firstLogEntry; malloc_log_entry* lastLogEntry; - u_long stacks; + int stacks; int sfd; Symbol* externalSymbols; - u_int usefulSymbols; - u_int numExternalSymbols; + int usefulSymbols; + int numExternalSymbols; StrSet exclusions; u_long lowestSymbolAddr; u_long highestSymbolAddr;