diff options
| author | Michael Matz <matz@suse.de> | 2016-08-07 02:15:34 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2016-12-15 17:47:10 +0100 |
| commit | 34fc6435ee17e6d2bbfffc367532cf340cf730a2 (patch) | |
| tree | 03f510ee2a18fa2e32d2c4026eee5fab0a811127 /tests/tcctest.c | |
| parent | b1a906b970e1f55c1a3e6786cddb08719216ade3 (diff) | |
| download | tinycc-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 'tests/tcctest.c')
| -rw-r--r-- | tests/tcctest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tcctest.c b/tests/tcctest.c index a604c4a..d8c8bcf 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -591,7 +591,7 @@ void enum_test() { enum test b1; /* The following should give no warning */ - int *p = &b1; + unsigned *p = &b1; printf("enum:\n%d %d %d %d %d %d\n", E0, E1, E2, E3, E4, E5); b1 = 1; |
