Hi-pedal pi newbie trying to compile clean.c and am getting a couple errors, hoping someone can help.
Compile error reads “pointer targets in passing argument 1 of ‘bcm2835_spi_tranfernb’ differ in signedness [-wpointer-sign]”. Looks like the compiler is expecting char* but is getting uint8* (aka unsigned char*). There are 4 instances of this error, and one about an unused variable ‘PUSH1_val’, which may or may not be related.
I’m using geany v1.29, bcm library v1.50 and can compile the examples spi.c and blink.c.
Thanks for sharing your issue. Its weird to have any compiler problem because all the codes are verified and checked. The usual problem is to have the BCM2835 not properly installed, using the image file of the OS that we have online fix all the problems (so far).
I will stay tuned to see if anything else like this appears again.