This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Dear Champs,
I am asking this for our customer.
We are aware of this issue and have encountered this issue.
But because this is for automotive application and MISRA-C requirement is needed, which does not support using float comparison.
Therefore, we have to face this warning
Even the report to suppress it is not resolved.
https://sir.ext.ti.com/jira/browse/EXT_EP-9814
Therefore, do you have any suggestion if the user has to meet MISRA-C and this issue?
Just keep the warning?
Wayne Huang
Hi,
Have you tried the manual workarounds mentioned in the page?
Regards,
Veena
Dear Veena,
The user tried the workaround by using floating comparison and it worked.
Now, the problem is MISRA considerations for automotive application.
Another one is, can the user still use integer comparison and suppress the warning if they don't think they will violate it?
There are some other manual workarounds mentioned in the page apart from the compiler workaround. Have you tried those?
diag_suppress just suppressed the specified warning IDs. Using that option and just ignoring the generated warning is functionally the same. If you are are sure there is no functional impact, you mat ignore that warning.
Regards,
Veena