Inconsistent enumeration declaration (tag mismatch)

An inconsistent data declaration was found.

In this case, the same name was declared as an enumeration in two compilation units, but the two types have a different tag.

ID

Observation

Description

1

Definition

The first definition

2

Definition

The second definition

Example

file1.c:

extern enum e1 {a,b,c} x;

int main(int argc, char **argv)
{
    return 0;
}
        
file2.c:
          
    enum e2 {a,b,c} x;
        

Copyright © 2010, Intel Corporation. All rights reserved.