cancel
Showing results for 
Search instead for 
Did you mean: 

ethernetif.c File and misra-c:2012 2.3 Issue(?)

lovewar
Associate

In the ethernetif.c file,

typedef enum
{
RX_ALLOC_OK = 0x00,
RX_ALLOC_ERROR = 0x01
} RxAllocStatusTypeDef; // Here, RxAllocStatusTypeDef type is not used.

It says that RxAllocStatusTypeDef is not used, which violates misra-c:2012 2.3.

Inferentially, this would require changing the type in the following code:

[before]

static uint8_t RxAllocStatus;

[after]

static RxAllocStatusTypeDef RxAllocStatus;

It looks like the code should be changed, what do you think?

1 ACCEPTED SOLUTION

Accepted Solutions
ASEHST
ST Employee

Hello @lovewar;,

Thank you for your report and for bringing this to our attention.

Internal ticket number: 187110

 

With Regards,

If your question is answered, please close this topic by clicking "Accept as Solution".

View solution in original post

1 REPLY 1
ASEHST
ST Employee

Hello @lovewar;,

Thank you for your report and for bringing this to our attention.

Internal ticket number: 187110

 

With Regards,

If your question is answered, please close this topic by clicking "Accept as Solution".