aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-08-07 02:15:34 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:47:10 +0100
commit34fc6435ee17e6d2bbfffc367532cf340cf730a2 (patch)
tree03f510ee2a18fa2e32d2c4026eee5fab0a811127 /tcc.h
parentb1a906b970e1f55c1a3e6786cddb08719216ade3 (diff)
downloadtinycc-34fc6435ee17e6d2bbfffc367532cf340cf730a2.tar.gz
tinycc-34fc6435ee17e6d2bbfffc367532cf340cf730a2.tar.bz2
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).
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h3
1 files changed, 2 insertions, 1 deletions
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 */