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

Add const qualifier to char * path argument in qoaplay_open() #2972

Merged
merged 2 commits into from
Mar 19, 2023

Conversation

Webfra
Copy link
Contributor

@Webfra Webfra commented Mar 19, 2023

Function qoaplay_open(char * path) doesn't change the path it is given.
Therefore, it should be safe to add the const qualifier.
Avoids a compiler warning in rauido.c.

Tested on Win10+mingw-gcc 12.2 and Ubuntu-20.04 (on WSL2).

@raysan5 raysan5 merged commit 08670ec into raysan5:master Mar 19, 2023
@raysan5
Copy link
Owner

raysan5 commented Mar 19, 2023

@Webfra Thanks for the improvement!

@Webfra Webfra deleted the fix_qoaplay_open_warning branch March 19, 2023 20:44
futureapricot pushed a commit to futureapricot/raylib that referenced this pull request Oct 4, 2023
…5#2972)

* Add const qualifier to char * path argument
in qoa_open()

* Remove unnecessary cast
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

2 participants