From d1bb7cfb3f4a6627fa93b610ca2a3e6a98f79c7e Mon Sep 17 00:00:00 2001 From: Martin Vychodil Date: Fri, 18 Mar 2022 07:54:29 +0100 Subject: [PATCH] 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 --- components/fatfs/src/ff.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/fatfs/src/ff.c b/components/fatfs/src/ff.c index 7d2f601d14..2730b2c5ba 100644 --- a/components/fatfs/src/ff.c +++ b/components/fatfs/src/ff.c @@ -6240,7 +6240,7 @@ static void putc_bfd ( /* Buffered write with code conversion */ WCHAR hs, wc; #if FF_LFN_UNICODE == 2 DWORD dc; - TCHAR *tp; + const TCHAR *tp; #endif #endif @@ -6282,7 +6282,7 @@ static void putc_bfd ( /* Buffered write with code conversion */ return; } } - tp = (TCHAR*)pb->bs; + tp = (const TCHAR*)pb->bs; dc = tchar2uni(&tp); /* UTF-8 ==> UTF-16 */ if (dc == 0xFFFFFFFF) return; wc = (WCHAR)dc; @@ -6444,7 +6444,7 @@ int f_printf ( for (;;) { c = *fmt++; - if (c == 0) break; /* End of string */ + if (c == 0) break; /* End of string */ if (c != '%') { /* Non escape character */ putc_bfd(&pb, c); continue;