Alternative fix for unused functions warnings on stb_truetype.h (and … #3237
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…stb_image.h)
As mentioned on #3235, submiting this for consideration since it could be an alternative way to workaround the unused functions warnings on
stb_truetype.h
(andstb_image.h
).Adds a
void unused_stb_truetype(void)
at the end ofstb_truetype.h
(R4967-R5000) andvoid unused_stb_image(void)
at the end ofstb_image.h
(R7761-R7767) with the list of unused functions.Downsides:
stb_truetype.h
andstb_image
are updated;stb_truetype.h
).Upsides:
Since it's an alternative method, this PR also reverts #3235 (
rtext.c
L74-L77, L86-L88) (rtexture.c
L141-L144, L154-L156, L165-L168, L174-L176).Tested successfully on
PLATFORM_DESKTOP
on Linux (Linux Mint 21.1 x86_64) andPLATFORM_WEB
.I think @ashn-dot-dev solution is pretty good. Just submiting this because it looked like an option worth testing.
Edit: added line marks.