Inconsistent structure/union declaration (field name mismatch)

An inconsistent data declaration was found.

In this case, the same name was declared as a structure or union in two compilation units, but comparison of the two types failed with a field name mismatch.

ID

Observation

Description

1

Definition

The first definition

2

Definition

The second definition

Example

file1.c:

struct {
    int f1;
} x;

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

Copyright © 2010, Intel Corporation. All rights reserved.