diff options
| author | Rob Loach <[email protected]> | 2023-03-19 06:16:52 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-03-19 11:16:52 +0100 |
| commit | c14c7f0b695edb363d9622777fee1986e61afd7e (patch) | |
| tree | 9d54a6b921304e747c9b85a9b2d65d02b3953f28 /src/shell.html | |
| parent | 76b5959bb5467a18641b64db09092e0461b72f52 (diff) | |
| download | raylib-c14c7f0b695edb363d9622777fee1986e61afd7e.tar.gz raylib-c14c7f0b695edb363d9622777fee1986e61afd7e.zip | |
raudio: Fix warning on discarded const qualifier (#2967)
The `qoaplay_open()` function expects a `char *`, but we are passing in a `const char *`. While this works just fine, it does issue a compiler warning when strict:
```
src/raudio.c: In function ‘LoadMusicStream’:
src/raudio.c:1290:45: warning: passing argument 1 of ‘qoaplay_open’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1290 | qoaplay_desc *ctxQoa = qoaplay_open(fileName);
| ^~~~~~~~
In file included from src/raudio.c:233:
src/external/qoaplay.c:86:34: note: expected ‘char *’ but argument is of type ‘const char *’
86 | qoaplay_desc *qoaplay_open(char *path)
| ~~~~~~^~~~
```
This change casts the argument to a `char *` to fix the warning.
Diffstat (limited to 'src/shell.html')
0 files changed, 0 insertions, 0 deletions
