per review

- remove -Wno-error=lto-type-mismatch
- change back to unsigned int
This commit is contained in:
hathach 2020-03-23 23:22:52 +07:00
parent 8a22eba7b4
commit bc0779de0a
2 changed files with 2 additions and 3 deletions

View File

@ -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];
}

View File

@ -74,7 +74,6 @@ CFLAGS += \
-Wno-deprecated-declarations \
-Wnested-externs \
-Wunreachable-code \
-Wno-error=lto-type-mismatch \
-ffunction-sections \
-fdata-sections