I get these warnings when I build on Mac OS X 10.8.
[jav-macbook-3:~/Downloads/stm32flash] jav> make
cc -Wall -g -c -o dev_table.o dev_table.c
cc -Wall -g -c -o i2c.o i2c.c
cc -Wall -g -c -o init.o init.c
cc -Wall -g -c -o main.o main.c
cc -Wall -g -c -o port.o port.c
cc -Wall -g -c -o serial_common.o serial_common.c
cc -Wall -g -c -o serial_platform.o serial_platform.c
cc -Wall -g -c -o stm32.o stm32.c
stm32.c:607:12: warning: comparison of constant 31 with expression of type
'stm32_err_t' is always false [-Wtautological-constant-out-of-range-compare]
if (s_err == STM32_NACK) {
~~~~~ ^ ~~~~~~~~~~
stm32.c:634:12: warning: comparison of constant 31 with expression of type
'stm32_err_t' is always false [-Wtautological-constant-out-of-range-compare]
if (s_err == STM32_NACK) {
~~~~~ ^ ~~~~~~~~~~
stm32.c:661:12: warning: comparison of constant 31 with expression of type
'stm32_err_t' is always false [-Wtautological-constant-out-of-range-compare]
if (s_err == STM32_NACK) {
~~~~~ ^ ~~~~~~~~~~
stm32.c:688:12: warning: comparison of constant 31 with expression of type
'stm32_err_t' is always false [-Wtautological-constant-out-of-range-compare]
if (s_err == STM32_NACK) {
~~~~~ ^ ~~~~~~~~~~
4 warnings generated.
cc -Wall -g -c -o utils.o utils.c
cd parsers && make parsers.a
cc -Wall -g -c -o binary.o binary.c
cc -Wall -g -c -o hex.o hex.c
ar rc parsers.a binary.o hex.o
cc -o stm32flash dev_table.o i2c.o init.o main.o port.o serial_common.o
serial_platform.o stm32.o utils.o parsers/parsers.a
Original issue reported on code.google.com by j...@google.com on 12 Jan 2015 at 6:53
Original issue reported on code.google.com by
j...@google.com
on 12 Jan 2015 at 6:53