Fixing dlsym cast warning.

This commit is contained in:
Marco Lizza 2024-02-29 01:57:41 +01:00
parent 596cabbe58
commit cdcd9c194a

View File

@ -44,10 +44,17 @@ void _glfwPlatformFreeModule(void* module)
dlclose(module);
}
#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#endif
GLFWproc _glfwPlatformGetModuleSymbol(void* module, const char* name)
{
return dlsym(module, name);
return (GLFWproc)dlsym(module, name);
}
#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
#endif // GLFW_BUILD_POSIX_MODULE