mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-17 08:45:13 +00:00
per review
- remove -Wno-error=lto-type-mismatch - change back to unsigned int
This commit is contained in:
parent
8a22eba7b4
commit
bc0779de0a
@ -157,7 +157,7 @@ uint16_t const* tud_descriptor_string_cb(uint8_t index, uint16_t langid)
|
||||
{
|
||||
(void) langid;
|
||||
|
||||
uint8_t chr_count = 0;
|
||||
unsigned int chr_count = 0;
|
||||
|
||||
if (STR_LANGID == index)
|
||||
{
|
||||
@ -188,7 +188,7 @@ uint16_t const* tud_descriptor_string_cb(uint8_t index, uint16_t langid)
|
||||
chr_count = strlen(str);
|
||||
if ( chr_count > (TU_ARRAY_SIZE(_desc_str) - 1)) chr_count = TU_ARRAY_SIZE(_desc_str) - 1;
|
||||
|
||||
for (uint8_t i=0; i<chr_count; i++)
|
||||
for (unsigned int i=0; i<chr_count; i++)
|
||||
{
|
||||
_desc_str[1+i] = str[i];
|
||||
}
|
||||
|
@ -74,7 +74,6 @@ CFLAGS += \
|
||||
-Wno-deprecated-declarations \
|
||||
-Wnested-externs \
|
||||
-Wunreachable-code \
|
||||
-Wno-error=lto-type-mismatch \
|
||||
-ffunction-sections \
|
||||
-fdata-sections
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user