From 65530cb62e46625af16ca7ef2d0dbfaba789b1dd Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 6 Mar 2009 23:46:13 +0000 Subject: [PATCH] Tweak warning text from the last commit llvm-svn: 66309 --- clang/include/clang/Basic/DiagnosticSemaKinds.def | 2 +- clang/test/Sema/struct-decl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.def b/clang/include/clang/Basic/DiagnosticSemaKinds.def index 27708236d183..eda47d6dbb76 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.def +++ b/clang/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/clang/test/Sema/struct-decl.c b/clang/test/Sema/struct-decl.c index e71a0b2b0c4f..3f95b7a71b84 100644 --- a/clang/test/Sema/struct-decl.c +++ b/clang/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; };