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

View File

@ -612,7 +612,7 @@ static void asm_parse_directive(TCCState *s1)
case TOK_ASMDIR_global:
case TOK_ASMDIR_weak:
case TOK_ASMDIR_hidden:
tok1 = tok;
tok1 = tok;
do {
Sym *sym;