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;
|
(void) langid;
|
||||||
|
|
||||||
uint8_t chr_count = 0;
|
unsigned int chr_count = 0;
|
||||||
|
|
||||||
if (STR_LANGID == index)
|
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);
|
chr_count = strlen(str);
|
||||||
if ( chr_count > (TU_ARRAY_SIZE(_desc_str) - 1)) chr_count = TU_ARRAY_SIZE(_desc_str) - 1;
|
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];
|
_desc_str[1+i] = str[i];
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,6 @@ CFLAGS += \
|
||||||
-Wno-deprecated-declarations \
|
-Wno-deprecated-declarations \
|
||||||
-Wnested-externs \
|
-Wnested-externs \
|
||||||
-Wunreachable-code \
|
-Wunreachable-code \
|
||||||
-Wno-error=lto-type-mismatch \
|
|
||||||
-ffunction-sections \
|
-ffunction-sections \
|
||||||
-fdata-sections
|
-fdata-sections
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue