Skip to content

Commit 324eb39

Browse files
Prevent -Wcast-function-type-mismatch diagnostics from clang (#1301)
Merge now because the iOS build issue is unrelated.
1 parent 9e3ec45 commit 324eb39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/include/public/mat.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ extern "C" {
370370
{
371371
#ifdef _WIN32
372372
/* This code accepts a handle of a library loaded in customer's code */
373-
evt_app_call_t impl = (evt_app_call_t)GetProcAddress((HMODULE)handle, "evt_api_call_default");
373+
/* The intermediate (void*) cast prevents incompatible function type cast diagnostics */
374+
evt_app_call_t impl = (evt_app_call_t)(void*)GetProcAddress((HMODULE)handle, "evt_api_call_default");
374375
if (impl != NULL)
375376
{
376377
evt_api_call = impl;

0 commit comments

Comments
 (0)