Skip to content

Commit

Permalink
[umf] fix a function declaration without a prototype
Browse files Browse the repository at this point in the history
For some reason this isn't being caught by default cmake build...
  • Loading branch information
pbalcer committed Aug 3, 2023
1 parent 4dbbe01 commit b470f8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b470f8d

Please sign in to comment.