From b470f8df522b993b66e46d06f1ad0be05bc7bdf4 Mon Sep 17 00:00:00 2001 From: pbalcer Date: Thu, 3 Aug 2023 13:09:07 +0200 Subject: [PATCH] [umf] fix a function declaration without a prototype For some reason this isn't being caught by default cmake build... --- .../src/memory_provider_get_last_failed.cpp | 2 +- .../unified_malloc_framework/src/memory_provider_internal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/common/unified_malloc_framework/src/memory_provider_get_last_failed.cpp b/source/common/unified_malloc_framework/src/memory_provider_get_last_failed.cpp index c439213a26..f9af93206a 100644 --- a/source/common/unified_malloc_framework/src/memory_provider_get_last_failed.cpp +++ b/source/common/unified_malloc_framework/src/memory_provider_get_last_failed.cpp @@ -14,7 +14,7 @@ extern "C" { static thread_local umf_memory_provider_handle_t lastFailedProvider = nullptr; -umf_memory_provider_handle_t *umfGetLastFailedMemoryProviderPtr() { +umf_memory_provider_handle_t *umfGetLastFailedMemoryProviderPtr(void) { return &lastFailedProvider; } } diff --git a/source/common/unified_malloc_framework/src/memory_provider_internal.h b/source/common/unified_malloc_framework/src/memory_provider_internal.h index 07befd4b4e..2bad161706 100644 --- a/source/common/unified_malloc_framework/src/memory_provider_internal.h +++ b/source/common/unified_malloc_framework/src/memory_provider_internal.h @@ -18,7 +18,7 @@ extern "C" { #endif void *umfMemoryProviderGetPriv(umf_memory_provider_handle_t hProvider); -umf_memory_provider_handle_t *umfGetLastFailedMemoryProviderPtr(); +umf_memory_provider_handle_t *umfGetLastFailedMemoryProviderPtr(void); #ifdef __cplusplus }