GCC 14+ does not like auto-casting a char** to a const char** for some reason.
This commit is contained in:
parent
08b089f620
commit
4b49f02237
|
|
@ -1931,7 +1931,7 @@ bool IsFileExtension(const char *fileName, const char *ext)
|
||||||
{
|
{
|
||||||
#if defined(SUPPORT_MODULE_RTEXT) && defined(SUPPORT_TEXT_MANIPULATION)
|
#if defined(SUPPORT_MODULE_RTEXT) && defined(SUPPORT_TEXT_MANIPULATION)
|
||||||
int extCount = 0;
|
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 };
|
char fileExtLower[MAX_FILE_EXTENSION_LENGTH + 1] = { 0 };
|
||||||
strncpy(fileExtLower, TextToLower(fileExt), MAX_FILE_EXTENSION_LENGTH); // WARNING: Module required: rtext
|
strncpy(fileExtLower, TextToLower(fileExt), MAX_FILE_EXTENSION_LENGTH); // WARNING: Module required: rtext
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user