diff --git a/source/common/unified_malloc_framework/include/umf/memory_provider.h b/source/common/unified_malloc_framework/include/umf/memory_provider.h index 8a911a62a3..739252b79c 100644 --- a/source/common/unified_malloc_framework/include/umf/memory_provider.h +++ b/source/common/unified_malloc_framework/include/umf/memory_provider.h @@ -148,7 +148,7 @@ const char *umfMemoryProviderGetName(umf_memory_provider_handle_t hProvider); /// returns status other than UMF_RESULT_SUCCESS. /// /// \return Handle to the memory provider -umf_memory_provider_handle_t umfGetLastFailedMemoryProvider(); +umf_memory_provider_handle_t umfGetLastFailedMemoryProvider(void); #ifdef __cplusplus } diff --git a/source/common/unified_malloc_framework/src/memory_provider.c b/source/common/unified_malloc_framework/src/memory_provider.c index 38e4dfbf8b..54554f3f9e 100644 --- a/source/common/unified_malloc_framework/src/memory_provider.c +++ b/source/common/unified_malloc_framework/src/memory_provider.c @@ -127,6 +127,6 @@ const char *umfMemoryProviderGetName(umf_memory_provider_handle_t hProvider) { return hProvider->ops.get_name(hProvider->provider_priv); } -umf_memory_provider_handle_t umfGetLastFailedMemoryProvider() { +umf_memory_provider_handle_t umfGetLastFailedMemoryProvider(void) { return *umfGetLastFailedMemoryProviderPtr(); }