/* >>>------------------------------------------------------------ * * File: rule_20.5.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 20.5 (Required): * The error indicator errno shall not be used. * * Implemented by message: * 5119 The error indicator errno shall not be used. * * <<<------------------------------------------------------------ */ #include #include "misra.h" #include "m2cmex.h" extern S16 test_2005( void ) { S16 r = 0; if ( errno != 0 ) /* MISRA violation */ { r = 1; } return r; }