Skip to content

Commit

Permalink
GCC 14+ does not like auto-casting a char** to a const char** for som…
Browse files Browse the repository at this point in the history
…e reason.
  • Loading branch information
JeffM2501 committed Jan 10, 2025
1 parent 08b089f commit 4b49f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -1931,7 +1931,7 @@ bool IsFileExtension(const char *fileName, const char *ext)
{
#if defined(SUPPORT_MODULE_RTEXT) && defined(SUPPORT_TEXT_MANIPULATION)
int extCount = 0;
const char **checkExts = TextSplit(ext, ';', &extCount); // WARNING: Module required: rtext
char **checkExts = TextSplit(ext, ';', &extCount); // WARNING: Module required: rtext

char fileExtLower[MAX_FILE_EXTENSION_LENGTH + 1] = { 0 };
strncpy(fileExtLower, TextToLower(fileExt), MAX_FILE_EXTENSION_LENGTH); // WARNING: Module required: rtext
Expand Down

0 comments on commit 4b49f02

Please sign in to comment.