Merge branch 'bugfix/fatfs_warning_fix_v4.3' into 'release/v4.3'

fatfs: Fix putc_bfd compilation warning (v4.3)

See merge request espressif/esp-idf!17523
This commit is contained in:
Ivan Grokhotkov
2022-04-20 16:20:52 +08:00

View File

@@ -6240,7 +6240,7 @@ static void putc_bfd ( /* Buffered write with code conversion */
WCHAR hs, wc; WCHAR hs, wc;
#if FF_LFN_UNICODE == 2 #if FF_LFN_UNICODE == 2
DWORD dc; DWORD dc;
TCHAR *tp; const TCHAR *tp;
#endif #endif
#endif #endif
@@ -6282,7 +6282,7 @@ static void putc_bfd ( /* Buffered write with code conversion */
return; return;
} }
} }
tp = (TCHAR*)pb->bs; tp = (const TCHAR*)pb->bs;
dc = tchar2uni(&tp); /* UTF-8 ==> UTF-16 */ dc = tchar2uni(&tp); /* UTF-8 ==> UTF-16 */
if (dc == 0xFFFFFFFF) return; if (dc == 0xFFFFFFFF) return;
wc = (WCHAR)dc; wc = (WCHAR)dc;