/* ----------------- Example code from MISRA C:2012 begin ----------------- */ #include float f1, f2; void f ( void ) { f1 = sqrt ( f2 ); /* Non-compliant */ } #include float f1, f2; void f ( void ) { f1 = sqrtf ( f2 ); /* Compliant */ } /* ------------------ Example code from MISRA C:2012 end ------------------ */