Skip to main content

IAR Embedded Workbench for RH850 3.20.x

MISRAC2012-Rule-21.12_c

In this section:
Synopsis

(Required) The standard header file <fenv.h> shall not be used.

Enabled by default

Yes

Severity/Certainty

Low/High

lowhigh.png
Full description

The standard header file <fenv.h> is used.

Coding standards
MISRA C:2012 Rule-21.12

(Required) The exception handling features of <fenv.h> should not be used

Code examples

The following code example fails the check and will give a warning:

#include <fenv.h>

void test(){
}

The following code example passes the check and will not give a warning about this issue:

void f ()
{
  /* ... */
}