diff options
| author | hathach <[email protected]> | 2020-03-23 23:22:52 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-03-23 23:22:52 +0700 |
| commit | bc0779de0a703c0d048a6d745343a378700d341a (patch) | |
| tree | fa9ebd00f54b4518b9878ef37aad8531aed779e8 | |
| parent | 8a22eba7b4104e037fb10d86edfd9dd97421b156 (diff) | |
per review
- remove -Wno-error=lto-type-mismatch
- change back to unsigned int
| -rw-r--r-- | examples/device/net_lwip_webserver/src/usb_descriptors.c | 4 | ||||
| -rw-r--r-- | examples/make.mk | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/examples/device/net_lwip_webserver/src/usb_descriptors.c b/examples/device/net_lwip_webserver/src/usb_descriptors.c index 93d8e1335..cdf2c0396 100644 --- a/examples/device/net_lwip_webserver/src/usb_descriptors.c +++ b/examples/device/net_lwip_webserver/src/usb_descriptors.c @@ -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]; } diff --git a/examples/make.mk b/examples/make.mk index 12ce3fd0c..5bba1cde7 100644 --- a/examples/make.mk +++ b/examples/make.mk @@ -74,7 +74,6 @@ CFLAGS += \ -Wno-deprecated-declarations \ -Wnested-externs \ -Wunreachable-code \ - -Wno-error=lto-type-mismatch \ -ffunction-sections \ -fdata-sections |
