CO_PDO: static analysis: argument 1 of type 'uint8_t [4]' is not compatible with argument 2 of type 'const void *' in call to function 'memcpy'
This commit is contained in:
parent
6f6936c9cc
commit
fe1709c42a
1 changed files with 2 additions and 2 deletions
|
|
@ -530,7 +530,7 @@ static ODR_t OD_write_14xx(OD_stream_t *stream, const void *buf,
|
||||||
CO_RPDO_t *RPDO = stream->object;
|
CO_RPDO_t *RPDO = stream->object;
|
||||||
CO_PDO_common_t *PDO = &RPDO->PDO_common;
|
CO_PDO_common_t *PDO = &RPDO->PDO_common;
|
||||||
uint8_t bufCopy[4];
|
uint8_t bufCopy[4];
|
||||||
(void)memcpy(bufCopy, buf, count);
|
(void)memcpy((void *)bufCopy, (const void *)buf, count);
|
||||||
|
|
||||||
switch (stream->subIndex) {
|
switch (stream->subIndex) {
|
||||||
case 1: { /* COB-ID used by PDO */
|
case 1: { /* COB-ID used by PDO */
|
||||||
|
|
@ -961,7 +961,7 @@ static ODR_t OD_write_18xx(OD_stream_t *stream, const void *buf,
|
||||||
CO_TPDO_t *TPDO = stream->object;
|
CO_TPDO_t *TPDO = stream->object;
|
||||||
CO_PDO_common_t *PDO = &TPDO->PDO_common;
|
CO_PDO_common_t *PDO = &TPDO->PDO_common;
|
||||||
uint8_t bufCopy[4];
|
uint8_t bufCopy[4];
|
||||||
(void)memcpy(bufCopy, buf, count);
|
(void)memcpy((void *)bufCopy, (const void *)buf, count);
|
||||||
|
|
||||||
switch (stream->subIndex) {
|
switch (stream->subIndex) {
|
||||||
case 1: { /* COB-ID used by PDO */
|
case 1: { /* COB-ID used by PDO */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue