Enabled -Wstrict-prototypes and fixed warnings.

This commit is contained in:
Qi Wang 2023-07-05 13:33:34 -07:00 committed by Qi Wang
parent ebd7e99f5c
commit 602edd7566
42 changed files with 82 additions and 80 deletions

View file

@ -428,7 +428,7 @@ prof_backtrace(tsd_t *tsd, prof_bt_t *bt) {
}
void
prof_hooks_init() {
prof_hooks_init(void) {
prof_backtrace_hook_set(&prof_backtrace_impl);
prof_dump_hook_set(NULL);
prof_sample_hook_set(NULL);
@ -436,7 +436,7 @@ prof_hooks_init() {
}
void
prof_unwind_init() {
prof_unwind_init(void) {
#ifdef JEMALLOC_PROF_LIBGCC
/*
* Cause the backtracing machinery to allocate its internal
@ -596,7 +596,7 @@ prof_open_maps_internal(const char *format, ...) {
#endif
static int
prof_dump_open_maps_impl() {
prof_dump_open_maps_impl(void) {
int mfd;
cassert(config_prof);