]> granicus.if.org Git - clang/commit
Reword the empty struct/union warning in C to note that such structs and unions have...
authorDouglas Gregor <dgregor@apple.com>
Thu, 29 Jul 2010 14:29:34 +0000 (14:29 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 29 Jul 2010 14:29:34 +0000 (14:29 +0000)
commit0333296d142d45bf2723635848928815b7491f91
tree36417d71b97f8c9e437f3762d4a86b0f14e781f0
parent021c3a349d4f55cc2c7970268758bcf37b924493
Reword the empty struct/union warning in C to note that such structs and unions have size 0 in C, size 1 in C++. Put this warning under -Wc++-compat.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109748 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticParseKinds.td
lib/Parse/ParseDecl.cpp
test/Sema/array-init.c
test/Sema/compound-literal.c