AnsweredAssumed Answered

code bugs in SSI_LDD

Question asked by Marc Lindahl on Jul 16, 2013
Latest reply on Jul 19, 2013 by Marc Lindahl

yet another casting bug which while warning in C is fatal in C++:

 

../Generated_Code/SSI1.c: In function 'LDD_TError SSI1_SendBlocks(LDD_TDeviceData*, LDD_SSI_TDataBlocks*, std::uint16_t)':

../Generated_Code/SSI1.c:504:72: error: invalid conversion from 'LDD_TData* {aka void*}' to 'std::uint8_t* {aka unsigned char*}' [-fpermissive]

../Generated_Code/SSI1.c:505:72: error: invalid conversion from 'LDD_TData* {aka void*}' to 'std::uint8_t* {aka unsigned char*}' [-fpermissive]

mingw32-make: *** [Generated_Code/SSI1.o] Error 1

 

Can be fixed with proper casting.

 

The file is also missing the 'extern C' wrapper which causes other compile errors.  Of course SSI1.h is also missing the wrapper as well.

 

 

Outcomes