[En-Nut-Discussion] spi_flash_at45d.c - compile errors with AT45D_CRC_PAGE enabled

Wojciech Nizinski niziak at spox.org
Tue Apr 1 13:49:40 CEST 2014


Hello!
Currently I'm migrating my project from NutOS 4.9.10 to 5.1.0-1.
Compiler found following problems (looks like copy-paste mistakes):

../../ethernut/nut/dev/spi_flash_at45d.c: In function 'CalculateChecksum':
../../ethernut/nut/dev/spi_flash_at45d.c:150:15: error: assignment makes
integer from pointer without a cast [-Werror]
             c = at->dxb_pbuf[i];
               ^
../../ethernut/nut/dev/spi_flash_at45d.c:137:16: error: unused variable
'bus' [-Werror=unused-variable]
     NUTSPIBUS *bus;
                ^
../../ethernut/nut/dev/spi_flash_at45d.c:136:9: error: unused variable
'rc' [-Werror=unused-variable]
     int rc;
         ^
../../ethernut/nut/dev/spi_flash_at45d.c:160:1: error: no return
statement in function returning non-void [-Werror=return-type]
 }
 ^

br,
Wojciech


More information about the En-Nut-Discussion mailing list