21-02-2018, 10:12 AM
I want to just clarify that following is a MISRA violation before using it in my code. I am calling one function from a file as under:
Here Dem_SetEventStatus is defined in one header as under:
Here Dem_EventIdType is a typedef of unit8 and Dem_ASR42_EventIdType is unsigned short.
So , there were the violation of MISRA 8.3 right??
Code:
(void)Dem_SetEventStatus((Dem_EventIdType)(dtcFlt_t.dtc[dtcIndex]), DEM_EVENT_STATUS_FAILED);
Here Dem_SetEventStatus is defined in one header as under:
Code:
extern FUNC(Std_ReturnType, RTE_CODE) Dem_SetEventStatus (Dem_ASR42_EventIdType EventId, Dem_ASR42_EventStatusType EventStatus);
Here Dem_EventIdType is a typedef of unit8 and Dem_ASR42_EventIdType is unsigned short.
So , there were the violation of MISRA 8.3 right??
<t></t>