From 34fc6435ee17e6d2bbfffc367532cf340cf730a2 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Sun, 7 Aug 2016 02:15:34 +0200 Subject: 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). --- tcc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 470b8dc..f990f8f 100644 --- a/tcc.h +++ b/tcc.h @@ -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 */ -- cgit v1.3.1