fix the bug #31403: parser bug in structure

- a warning: unnamed struct/union that defines no instances
    - allow a nested named struct declaration w/o identifier
      only when option -fms-extensions is used
This commit is contained in:
seyko
2015-04-10 06:31:58 +03:00
parent 9fc3d66f1b
commit dec959358a
4 changed files with 23 additions and 3 deletions

1
tcc.h
View File

@ -602,6 +602,7 @@ struct TCCState {
/* C language options */
int char_is_unsigned;
int leading_underscore;
int ms_extensions; /* allow nested named struct w/o identifier behave like unnamed */
/* warning switches */
int warn_write_strings;