Why does "Check for equality and inequality operations on floating-point values" warning in misra c-2012 show up even though when I compare something with enum value?
Show older comments
Why does "Check for equality and inequality operations on floating-point values" warning in misra c-2012 show up even though when I compare something with enum value?
I checked that poin and, there are enum value, not floating-number as well as, that enum value is set as uint8. I think there is no reason to show up just like that warning.
2 Comments
MIN HOON
on 2 May 2023
Santosh Fatale
on 16 May 2023
Hi Min,
Could you please provide the sample code for investigation?
Answers (0)
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!