Static Analysis Problem Type Reference
An inconsistent data declaration was found.
In this case, the same name was declared as a structure or union in two compilation units, but the types of the fields in the two declarations did not match.
|
ID |
Code Location |
Description |
|---|---|---|
|
1 |
Definition |
The first definition |
|
2 |
Definition |
The second definition |
struct {
int f1;
int f2;
} x;
int main(int argc, char **argv)
{
return 1;
}
file2.c:
struct {
short f1;
int f2;
} x;