Inconsistent variable declaration (type mismatch)

An inconsistent variable declaration was found.

In this case, the same name was declared as variable in two compilation units, but the types in the two declarations did not match.

ID

Observation

Description

1

Definition

The first definition

2

Definition

The second definition

Example

file1.c:

extern int x;

int main(int argc, char **argv)
{
    return x;
}
        
file2.c:
          
    long x = 1;
        

Copyright © 2010, Intel Corporation. All rights reserved.