[En-Nut-Discussion] GpioSpiMicroDelay defined but not used
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Sun Mar 15 11:21:40 CET 2015
>>>>> "Harald" == Harald Kipp <harald.kipp at egnite.de> writes:
Harald> Trying to build the trunk for CM3 fails with arm-none-eabi-gcc
Harald> -c -I../../lisa-cm3-gcc-bld/include -I../.././nut/include
Harald> -I../.././nut/include/contrib -DLISA -MD -MP -mcpu=cortex-m3
Harald> -mthumb -D__CORTEX__ -ffunction-sections -fdata-sections
Harald> -fomit-frame-pointer -mfix-cortex-m3-ldrd -Os -Wall
Harald> -Wstrict-prototypes -Werror -Wa,-a=spibus0gpio.lst -o
Harald> spibus0gpio.o ../.././nut/dev/spibus0gpio.c
Harald> ../.././nut/dev/spibus0gpio.c:91:13: error: 'GpioSpiMicroDelay'
Harald> defined but not used [-Werror=unused-function] cc1.exe: all
Harald> warnings being treated as errors make[1]: *** [spibus0gpio.o]
Harald> Error 1 make[1]: Leaving directory
Harald> `E:/ethernut/ethernut-5.2.6/lisa-cm3-gcc-bld/dev' make: ***
Harald> [all] Error 2
Fixed in trunk.
Delay is only needed if a SCK pin is defined.
Thanks for the pointer.
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the En-Nut-Discussion
mailing list