mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
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>
This commit is contained in:
parent
52ee1a0294
commit
f88d48cc74
1 changed files with 4 additions and 4 deletions
|
@ -80,7 +80,7 @@ GmListElement* makeGmListElement (void* bas)
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
void gcleanup ()
|
void gcleanup (void)
|
||||||
{
|
{
|
||||||
BOOL rval;
|
BOOL rval;
|
||||||
assert ( (head == NULL) || (head->base == (void*)gAddressBase));
|
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() */
|
/* Utility to update current_mallinfo for malloc_stats and mallinfo() */
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
static void malloc_update_mallinfo()
|
static void malloc_update_mallinfo(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
mbinptr b;
|
mbinptr b;
|
||||||
|
@ -2397,7 +2397,7 @@ static void malloc_update_mallinfo()
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
void malloc_stats()
|
void malloc_stats(void)
|
||||||
{
|
{
|
||||||
malloc_update_mallinfo();
|
malloc_update_mallinfo();
|
||||||
printf("max system bytes = %10u\n",
|
printf("max system bytes = %10u\n",
|
||||||
|
@ -2418,7 +2418,7 @@ void malloc_stats()
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
struct mallinfo mALLINFo()
|
struct mallinfo mALLINFo(void)
|
||||||
{
|
{
|
||||||
malloc_update_mallinfo();
|
malloc_update_mallinfo();
|
||||||
return current_mallinfo;
|
return current_mallinfo;
|
||||||
|
|
Loading…
Reference in a new issue