lthiery / SPI-Py

Hardware SPI as a C Extension for Python
289 stars 150 forks source link

Warnings when installing #9

Open netengine-at opened 9 years ago

netengine-at commented 9 years ago

Hi,

I get 2 warnings when I try to install SPI-PY. I've got a "Raspberry PI B+" board and "Raspbian GNU/Linux 7 (wheezy)".

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c spi.c -o build/temp.linux-armv6l-2.7/spi.o

spi.c:197:2: warning: initialization from incompatible pointer type [enabled by default] spi.c:197:2: warning: (near initialization for ‘SpiMethods[0].ml_meth’) [enabled by default]

What can I do to prevent these warning, are the warnings a big problem?

Thank you in advance!

padre commented 9 years ago

Im having the exact same problem... Can anyone please help?