Skip to content

Commit

Permalink
Merge pull request oneapi-src#774 from pbalcer/missing-prototype
Browse files Browse the repository at this point in the history
[umf] fix a function declaration without a prototype
  • Loading branch information
pbalcer authored Aug 9, 2023
2 parents 3018ab4 + b470f8d commit 404afa8
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 404afa8

Please sign in to comment.