Bug 1261384: Clean up warnings-as-errors nits in jprof (NPOTB) rs=me

Not enabled by default.

MozReview-Commit-ID: IASV3aPem96
This commit is contained in:
Randell Jesup 2016-04-01 11:08:04 -04:00
Родитель c9b15d3087
Коммит d21c70dd6c
1 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -95,7 +95,6 @@ JPROF_STATIC void CrawlStack(malloc_log_entry* me,
void *array[500];
int cnt, i;
u_long numpcs = 0;
bool tracing = false;
// This is from glibc. A more generic version might use
// libunwind and/or CaptureStackBackTrace() on Windows
@ -633,12 +632,12 @@ NS_EXPORT_(void) setupProfilingStuff(void)
size_t size = atol(circular_op+strlen("JP_CIRCULAR="));
if (size < 1000) {
fprintf(stderr,
"JP_CIRCULAR of %d less than 1000, using 10000\n",
size);
"JP_CIRCULAR of %lu less than 1000, using 10000\n",
(unsigned long) size);
size = 10000;
}
JprofBufferInit(size);
fprintf(stderr,"JP_CIRCULAR buffer of %d bytes\n",size);
fprintf(stderr,"JP_CIRCULAR buffer of %lu bytes\n", (unsigned long) size);
circular = true;
}
@ -668,7 +667,7 @@ NS_EXPORT_(void) setupProfilingStuff(void)
#endif
}
char *f = strstr(tst,"JP_FILENAME=");
const char *f = strstr(tst,"JP_FILENAME=");
if (f)
f = f + strlen("JP_FILENAME=");
else