Closed xingqing6210 closed 6 years ago
hi,
we see the code about:
const void* anchorDataPtr = &rangePacket->remoteAnchorData; anchorDataPtr += sizeof(remoteAnchorDataFull_t);
or
return (void*)anchorDataPtr - (void*)rangePacket;
maybe report the error expression must be a pointer to a complete object type
expression must be a pointer to a complete object type
It seems as GNU C accepts void* arithmetics (treaded as a pointer to bytes) while it is not supported by the C standard.
Thanks!
hi,
we see the code about:
or
return (void*)anchorDataPtr - (void*)rangePacket;
maybe report the error
expression must be a pointer to a complete object type