зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
c9b15d3087
Коммит
d21c70dd6c
|
@ -95,7 +95,6 @@ JPROF_STATIC void CrawlStack(malloc_log_entry* me,
|
||||||
void *array[500];
|
void *array[500];
|
||||||
int cnt, i;
|
int cnt, i;
|
||||||
u_long numpcs = 0;
|
u_long numpcs = 0;
|
||||||
bool tracing = false;
|
|
||||||
|
|
||||||
// This is from glibc. A more generic version might use
|
// This is from glibc. A more generic version might use
|
||||||
// libunwind and/or CaptureStackBackTrace() on Windows
|
// libunwind and/or CaptureStackBackTrace() on Windows
|
||||||
|
@ -633,12 +632,12 @@ NS_EXPORT_(void) setupProfilingStuff(void)
|
||||||
size_t size = atol(circular_op+strlen("JP_CIRCULAR="));
|
size_t size = atol(circular_op+strlen("JP_CIRCULAR="));
|
||||||
if (size < 1000) {
|
if (size < 1000) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"JP_CIRCULAR of %d less than 1000, using 10000\n",
|
"JP_CIRCULAR of %lu less than 1000, using 10000\n",
|
||||||
size);
|
(unsigned long) size);
|
||||||
size = 10000;
|
size = 10000;
|
||||||
}
|
}
|
||||||
JprofBufferInit(size);
|
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;
|
circular = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -668,7 +667,7 @@ NS_EXPORT_(void) setupProfilingStuff(void)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
char *f = strstr(tst,"JP_FILENAME=");
|
const char *f = strstr(tst,"JP_FILENAME=");
|
||||||
if (f)
|
if (f)
|
||||||
f = f + strlen("JP_FILENAME=");
|
f = f + strlen("JP_FILENAME=");
|
||||||
else
|
else
|
||||||
|
|
Загрузка…
Ссылка в новой задаче