mirror of
https://github.com/glfw/glfw.git
synced 2024-11-14 10:34:34 +00:00
Fixing dlsym
cast warning.
This commit is contained in:
parent
596cabbe58
commit
cdcd9c194a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user