From: Douglas Gregor Date: Fri, 6 Mar 2009 23:46:13 +0000 (+0000) Subject: Tweak warning text from the last commit X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=177f708abadfca856b83f1c540c66667d167a4e8;p=clang Tweak warning text from the last commit git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66309 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; };