I receive this warning when including <string.h> for the memcpy() function prototype:
warning: (MISRA-C:2004 16.4/R) The identifiers used in the declaration and definition of a function shall be identical
<string.h> defines memcpy():
void *memcpy(void *_s1, const void *_s2, size_t _n);
memcpy() is a built-in (it actually isn't necessary to provide a function prototype to call the function but our coding standards requires it) so it appears that the MISRA checker has some specification for memcpy that is inconsistent with that in string.h.
Is this a bug of the MISRA checker or is there a specific signature that I can substitute for that in string.h to prevent the warning (without having to disable this MISRA rule)?
Thanks,
Bill