forked from espressif/esp-idf
fatfs: Fix putc_bfd compilation warning
Fixed FatFs\ff.c: warning: argument of type "TCHAR **" is incompatible with parameter of type "const TCHAR **" Closes https://github.com/espressif/esp-idf/issues/5870
This commit is contained in:
@@ -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;
|
||||||
@@ -6444,7 +6444,7 @@ int f_printf (
|
|||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
c = *fmt++;
|
c = *fmt++;
|
||||||
if (c == 0) break; /* End of string */
|
if (c == 0) break; /* End of string */
|
||||||
if (c != '%') { /* Non escape character */
|
if (c != '%') { /* Non escape character */
|
||||||
putc_bfd(&pb, c);
|
putc_bfd(&pb, c);
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user