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

Fix implicit declaration of _calc_offset #299

Merged
merged 1 commit into from Jun 9, 2023

Conversation

ryandesign
Copy link
Contributor

Fixes:

lib/SDLx/Surface.xs:25:25: error: implicit declaration of function '_calc_offset' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    void* s =  pixels + _calc_offset(surface, x, y); 
                        ^

@ppisar
Copy link

ppisar commented Mar 10, 2023

This is an important fix. GCC 14 will likely report an fatal error on this https://fedoraproject.org/wiki/Changes/PortingToModernC.

@dod38fr dod38fr merged commit 3a84fb7 into PerlGameDev:master Jun 9, 2023
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.

None yet

3 participants