Fix almost all compiler warnings

lcd_api: isalpha expects type in so I cast char to int
lcd_api: uint32 in printf where %d instead of %lu
llfs: filter_ok was set but unused so I removed it
tftp: wrong casting char to uint8_t but needed to be cast to const char* instead
This commit is contained in:
2023-12-01 11:31:53 +01:00
parent b06ec97075
commit 97783c69c5
3 changed files with 6 additions and 8 deletions

View File

@@ -170,7 +170,7 @@ void tftp_close(void* handle) {
if (handle == &virt_file[VIRT_TEXT_TXT]) {
lcd_clear_images();
lcd_clear_text();
lcd_display_text((uint8_t*)virt_file[VIRT_TEXT_TXT].data, 0, 0, LCD_COLOR_WHITE, LCD_TRANSPARENT, LCD_FONT16);
lcd_display_text((const char*)virt_file[VIRT_TEXT_TXT].data, 0, 0, LCD_COLOR_WHITE, LCD_TRANSPARENT, LCD_FONT16);
}
if (handle == &virt_file[VIRT_INDEX_TXT] || handle == &virt_file[VIRT_IMAGE_BMP]