[cfe-commits] r66309 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.def test/Sema/struct-decl.c

Douglas Gregor dgregor at apple.com
Fri Mar 6 15:46:13 PST 2009


Author: dgregor
Date: Fri Mar  6 17:46:13 2009
New Revision: 66309

URL: http://llvm.org/viewvc/llvm-project?rev=66309&view=rev
Log:
Tweak warning text from the last commit

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.def
    cfe/trunk/test/Sema/struct-decl.c

Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.def?rev=66309&r1=66308&r2=66309&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.def (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.def Fri Mar  6 17:46:13 2009
@@ -775,7 +775,7 @@
 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")

Modified: cfe/trunk/test/Sema/struct-decl.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/struct-decl.c?rev=66309&r1=66308&r2=66309&view=diff

==============================================================================
--- cfe/trunk/test/Sema/struct-decl.c (original)
+++ cfe/trunk/test/Sema/struct-decl.c Fri Mar  6 17:46:13 2009
@@ -29,7 +29,7 @@
  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;
 };
 





More information about the cfe-commits mailing list