diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-06 23:46:13 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-06 23:46:13 +0000 |
commit | 177f708abadfca856b83f1c540c66667d167a4e8 (patch) | |
tree | 285ba9b7325bb01637e8bcbf7d2da22b78e776bc | |
parent | e4f3e069e5e43d466954989dd7509ed371914bd0 (diff) |
Tweak warning text from the last commit
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66309 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.def | 2 | ||||
-rw-r--r-- | test/Sema/struct-decl.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.def b/include/clang/Basic/DiagnosticSemaKinds.def index 27708236d1..eda47d6dbb 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.def +++ b/include/clang/Basic/DiagnosticSemaKinds.def @@ -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") diff --git a/test/Sema/struct-decl.c b/test/Sema/struct-decl.c index e71a0b2b0c..3f95b7a71b 100644 --- a/test/Sema/struct-decl.c +++ b/test/Sema/struct-decl.c @@ -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; }; |