enums and ints are compatible

But like GCC do warn about changes in signedness.  The latter
leads to some changes in gen_assign_cast to not also warn about
  unsigned* = int*
(where GCC warns, but only with extra warnings).
This commit is contained in:
Michael Matz
2016-08-07 02:15:34 +02:00
parent b1a906b970
commit 34fc6435ee
4 changed files with 35 additions and 14 deletions

3
tcc.h
View File

@ -387,7 +387,8 @@ struct Attribute {
mode : 4,
weak : 1,
visibility : 2,
fill : 8; // 8 bits left to fit well in union below
unsigned_enum : 1,
fill : 7; // 7 bits left to fit well in union below
};
/* GNUC attribute definition */