Tweak warning text from the last commit

llvm-svn: 66309
This commit is contained in:
Douglas Gregor 2009-03-06 23:46:13 +00:00
parent 3e06dbf48c
commit 65530cb62e
2 changed files with 2 additions and 2 deletions

View File

@ -775,7 +775,7 @@ DIAG(err_field_declared_as_function, ERROR,
DIAG(err_field_incomplete, ERROR,
"field has incomplete type %0")
DIAG(ext_variable_sized_type_in_struct, EXTWARN,
"variable sized type %0 not at the end of a struct or class is a "
"field of variable sized type %0 not at the end of a struct or class is a "
"GNU extension")
DIAG(err_flexible_array_empty_struct, ERROR,
"flexible array %0 not allowed in otherwise empty struct")

View File

@ -29,7 +29,7 @@ struct pppoe_tag {
char tag_data[];
};
struct datatag {
struct pppoe_tag hdr; //expected-warning{{variable sized type 'hdr' not at the end of a struct or class is a GNU extension}}
struct pppoe_tag hdr; //expected-warning{{field of variable sized type 'hdr' not at the end of a struct or class is a GNU extension}}
char data;
};