Compiler warning....what does it mean and how do I cast to fix it
The following line of code generates a warning:
code:
Code:
memcpy(noCRC, pRx, 4);
warning:
argument of type "volatile char *" is incompatible with parameter of type "const void *__restrict__"
Code:
volatile char *pRx;
char noCRC[4];
I understand the types are different. I would like to know how do I cast to make the warning go away? Secondly I do not understand the void * for memcpy, is it expecting a pointer to a function here?
Thanks