We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-Wcast-function-type-mismatch
1 parent 9e3ec45 commit 324eb39Copy full SHA for 324eb39
lib/include/public/mat.h
@@ -370,7 +370,8 @@ extern "C" {
370
{
371
#ifdef _WIN32
372
/* 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");
+ /* 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");
375
if (impl != NULL)
376
377
evt_api_call = impl;
0 commit comments