Inconsistent array declaration (element count mismatch)

An inconsistent data declaration was found.

In this case, the same name was declared as an array in two compilation units, but the number of array elements in the two declarations did not match.

ID

Observation

Description

1

Definition

The first definition

2

Definition

The second definition

Example

file1.c:

int x[10];

int main(int argc, char **argv)
{
    return 1;
}
        
file2.c:
          
    int x[11];
        

Copyright © 2010, Intel Corporation. All rights reserved.