We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac6fe38 commit 001e52cCopy full SHA for 001e52c
1 file changed
include/libremidi/backends/kdmapi/helpers.hpp
@@ -70,6 +70,11 @@ class kdmapi_loader
70
return;
71
}
72
73
+#if !defined(_MSC_VER)
74
+#pragma GCC diagnostic push
75
+#pragma GCC diagnostic ignored "-Wcast-function-type"
76
+#endif
77
+
78
// Load all function pointers
79
IsKDMAPIAvailable
80
= reinterpret_cast<IsKDMAPIAvailable_t>(GetProcAddress(m_handle, "IsKDMAPIAvailable"));
@@ -94,6 +99,10 @@ class kdmapi_loader
94
99
ReturnKDMAPIVer
95
100
= reinterpret_cast<ReturnKDMAPIVer_t>(GetProcAddress(m_handle, "ReturnKDMAPIVer"));
96
101
102
103
+#pragma GCC diagnostic pop
104
105
97
106
// Check if the minimum required functions are available
98
107
if (!IsKDMAPIAvailable || !InitializeKDMAPIStream || !TerminateKDMAPIStream || !SendDirectData)
108
{
0 commit comments