grytole / stm8builder

Simple build system for stm8s chips with SDCC toolchain, Stm8_StdPeriph_Driver and stm8flash flasher
MIT License
15 stars 0 forks source link

First make flash warnings #2

Open hoopsurfer opened 5 years ago

hoopsurfer commented 5 years ago

$ make flash make[1]: Entering directory '/home/pi/STM8/blink/stm8builder/flasher' stlink.c: In function ‘stlink_read_and_cmp’: stlink.c:62:6: warning: unused variable ‘recv’ [-Wunused-variable] int recv = stlink_read(pgm, buf, count); ^~~~ stlink.c: In function ‘stlink_swim_read_range’: stlink.c:399:16: warning: unused variable ‘buf’ [-Wunused-variable] unsigned char buf[4]; ^~~ stlink.c: In function ‘stlink_swim_write_block’: stlink.c:485:7: warning: unused variable ‘r’ [-Wunused-variable] int r = libusb_bulk_transfer(pgm->dev_handle, ^ main.c: In function ‘main’: main.c:424:3: warning: enumeration value ‘UNKNOWN’ not handled in switch [-Wswitch] switch(memtype) { ^~ make[1]: Leaving directory '/home/pi/STM8/blink/stm8builder/flasher'

Should I expect these warnings?

grytole commented 5 years ago

Should I expect these warnings?

Hi, yes. It is from an external application - stm8flash.