27-11-2021, 09:10 AM
Whether the code is an infinite loop will depend on the value of "var". If it is less than 255 there is no problem. If examination of the code shows that "var" may exceed 255 then rule 14.3 would be violated since the controlling expression will always be false.
Posted by and on behalf of the MISRA C Working Group