[Concept,21/37] dlmalloc: Fix a warning with clang-15

Message ID 20251201170529.3237986-22-sjg@u-boot.org
State New
Headers
Series malloc: Import dlmalloc 2.8.6 |

Commit Message

Simon Glass Dec. 1, 2025, 5:05 p.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

Add (void) to dlmalloc_stats() function definition to match its
declaration and avoid the clang-15 warning about function declarations
without prototypes.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
(cherry picked from commit f88d48cc74f0e78b14fed812101d94de65e43802)
---

 common/dlmalloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/common/dlmalloc.c b/common/dlmalloc.c
index aacc9b5db3b..03fd902c9f6 100644
--- a/common/dlmalloc.c
+++ b/common/dlmalloc.c
@@ -5553,7 +5553,7 @@  struct mallinfo dlmallinfo(void) {
 #endif /* NO_MALLINFO */
 
 #if !NO_MALLOC_STATS
-void dlmalloc_stats() {
+void dlmalloc_stats(void) {
   internal_malloc_stats(gm);
 }
 #endif /* NO_MALLOC_STATS */