Fix warning on FATFS builds

Triggered on a customer's FATFS build with -Werror.
pull/796/head
Andrew Hutchings 2025-04-08 17:01:32 +01:00
parent d3bd96f210
commit 7ab2b27fdd
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ extern "C" {
} }
if (*f == 0) { if (*f == 0) {
*f = WMALLOC(sizeof(FIL), NULL, 0); *f = (FIL*)WMALLOC(sizeof(FIL), NULL, 0);
} }
#ifdef WOLFSSH_XILFATFS #ifdef WOLFSSH_XILFATFS
m = FA_CREATE_ALWAYS; m = FA_CREATE_ALWAYS;