diff options
author | Tom Rini <trini@konsulko.com> | 2023-02-27 17:08:34 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-03-22 15:22:48 -0400 |
commit | f88d48cc74f0e78b14fed812101d94de65e43802 (patch) | |
tree | 3a86e7e409f25d5c6da372b4a856c6e5ebe0e657 | |
parent | 52ee1a0294e8657fc8d18c1ff20cf2b1a41457ef (diff) | |
download | u-boot-f88d48cc74f0e78b14fed812101d94de65e43802.zip u-boot-f88d48cc74f0e78b14fed812101d94de65e43802.tar.gz u-boot-f88d48cc74f0e78b14fed812101d94de65e43802.tar.bz2 |
dlmalloc: Fix a warning with clang-15
With clang-15 we now will get warnings such as:
warning: a function declaration without a prototype is deprecated in all
versions of C [-Wstrict-prototypes]
And it is easy enough to address this warning here, as we aren't
concerned with re-syncing with an upstream.
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | common/dlmalloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/dlmalloc.c b/common/dlmalloc.c index 41c7230..0f9b726 100644 --- a/common/dlmalloc.c +++ b/common/dlmalloc.c @@ -80,7 +80,7 @@ GmListElement* makeGmListElement (void* bas) return this; } -void gcleanup () +void gcleanup (void) { BOOL rval; assert ( (head == NULL) || (head->base == (void*)gAddressBase)); @@ -2340,7 +2340,7 @@ size_t malloc_usable_size(mem) Void_t* mem; /* Utility to update current_mallinfo for malloc_stats and mallinfo() */ #ifdef DEBUG -static void malloc_update_mallinfo() +static void malloc_update_mallinfo(void) { int i; mbinptr b; @@ -2397,7 +2397,7 @@ static void malloc_update_mallinfo() */ #ifdef DEBUG -void malloc_stats() +void malloc_stats(void) { malloc_update_mallinfo(); printf("max system bytes = %10u\n", @@ -2418,7 +2418,7 @@ void malloc_stats() */ #ifdef DEBUG -struct mallinfo mALLINFo() +struct mallinfo mALLINFo(void) { malloc_update_mallinfo(); return current_mallinfo; |