mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-31 16:20:57 +00:00
clean up warning, msp430 gcc 8.3 fixed the library lto issue
This commit is contained in:
parent
4e8c57171c
commit
de333a6f18
@ -77,10 +77,6 @@ CFLAGS += \
|
|||||||
-ffunction-sections \
|
-ffunction-sections \
|
||||||
-fdata-sections
|
-fdata-sections
|
||||||
|
|
||||||
ifneq ($(BOARD), msp_exp430f5529lp)
|
|
||||||
CFLAGS += -Wno-error=lto-type-mismatch
|
|
||||||
endif
|
|
||||||
|
|
||||||
# This causes lots of warning with nrf5x build due to nrfx code
|
# This causes lots of warning with nrf5x build due to nrfx code
|
||||||
# CFLAGS += -Wcast-align
|
# CFLAGS += -Wcast-align
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ char const* const tusb_strerr[TUSB_ERROR_COUNT] = { ERROR_TABLE(ERROR_STRING) };
|
|||||||
static void dump_str_line(uint8_t const* buf, uint16_t count)
|
static void dump_str_line(uint8_t const* buf, uint16_t count)
|
||||||
{
|
{
|
||||||
// each line is 16 bytes
|
// each line is 16 bytes
|
||||||
for(int i=0; i<count; i++)
|
for(uint16_t i=0; i<count; i++)
|
||||||
{
|
{
|
||||||
const char ch = buf[i];
|
const char ch = buf[i];
|
||||||
tu_printf("%c", isprint(ch) ? ch : '.');
|
tu_printf("%c", isprint(ch) ? ch : '.');
|
||||||
@ -127,7 +127,7 @@ void tu_print_mem(void const *buf, uint8_t size, uint16_t count)
|
|||||||
|
|
||||||
if ( remain )
|
if ( remain )
|
||||||
{
|
{
|
||||||
for(int i=0; i< 16-remain; i++)
|
for(uint16_t i=0; i< 16-remain; i++)
|
||||||
{
|
{
|
||||||
tu_printf(" ");
|
tu_printf(" ");
|
||||||
for(int j=0; j<2*size; j++) tu_printf(" ");
|
for(int j=0; j<2*size; j++) tu_printf(" ");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user