Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move SDL_LoadObject et al. to platform_sdl.c to fix warnings. #500

Merged
merged 3 commits into from
Nov 3, 2024

Conversation

AliceLR
Copy link
Owner

@AliceLR AliceLR commented Nov 3, 2024

SDL3 uses SDL_FunctionPointer instead of void * for function pointers, which introduces function/object aliasing warnings. Instead of using SDL_FUNCTION_POINTER_IS_VOID_POINTER to work around this (which introduces more warnings in unrelated places), it's easier to just combine all of the places these functions are used into platform_* functions. GL_GetProcAddress still requires a separate hack.

SDL3 uses SDL_FunctionPointer instead of void * for function
pointers, which introduces function/object aliasing warnings.
Instead of using SDL_FUNCTION_POINTER_IS_VOID_POINTER to work
around this (which introduces more warnings in unrelated places),
it's easier to just combine all of the places these functions
are used into platform_* functions. GL_GetProcAddress still
requires a separate hack.
@AliceLR AliceLR added this to the 2.93c milestone Nov 3, 2024
@AliceLR AliceLR merged commit d139c61 into master Nov 3, 2024
16 checks passed
@AliceLR AliceLR deleted the add-platform-load-library branch November 3, 2024 22:26
@AliceLR AliceLR mentioned this pull request Nov 3, 2024
32 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant