Skip to content

Commit

Permalink
Prevent -Wcast-function-type-mismatch diagnostics from clang (#1301)
Browse files Browse the repository at this point in the history
Merge now because the iOS build issue is unrelated.
  • Loading branch information
ZacharyHenkel authored Sep 12, 2024
1 parent 9e3ec45 commit 324eb39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/include/public/mat.h
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ extern "C" {
{
#ifdef _WIN32
/* This code accepts a handle of a library loaded in customer's code */
evt_app_call_t impl = (evt_app_call_t)GetProcAddress((HMODULE)handle, "evt_api_call_default");
/* The intermediate (void*) cast prevents incompatible function type cast diagnostics */
evt_app_call_t impl = (evt_app_call_t)(void*)GetProcAddress((HMODULE)handle, "evt_api_call_default");
if (impl != NULL)
{
evt_api_call = impl;
Expand Down

0 comments on commit 324eb39

Please sign in to comment.