msalau / rl78flash

Tool to program RL78 MCUs via serial bootloader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't compile on RaspberryPi

stawiski opened this issue · comments

There's a warning:

pi@raspberrypi:~/rl78flash $ make
cc -O2 -Wall -Wextra -Werror -c -o src/rl78.o src/rl78.c
cc -O2 -Wall -Wextra -Werror -c -o src/main.o src/main.c
src/main.c: In function 'main':
src/main.c:106:35: error: comparison is always false due to limited range of data type [-Werror=type-limits]
|| MODE_MIN_VALUE > mode)
^
cc1: all warnings being treated as errors
make: *** [: src/main.o] Error 1

Hi @stawiski

Thanks for reporting and providing a fix!

Regards,
Maksim