Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When the preceding example is executed on GCC 4.8.1, the variable i is instantiated with automatic storage duration within the block, but it is not initialized. Consequently, if the controlling expression expr has a nonzero value, the call to printf() will access an indeterminate value of i. Similarly, the call to f() is not executed.

the value Value of expr

Output

0

17

Nonzero

Indeterminate

...

Tool

Version

Checker

Description

Clang
Include Page
Clang_V
Clang_V
-Wsometimes-uninitialized
 
LDRA tool suite 
Include Page
LDRA_V
LDRA_V
385 SFully Implementedimplemented

PRQA QA-C

Include Page
PRQA QA-C_v
PRQA QA-C_v

3234
2008
2882

Partially implemented

...