mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 06:11:06 +00:00 
			
		
		
		
	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:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user