]> granicus.if.org Git - clang/commit
Don't warn about anonymous struct/union in C11.
authorHans Wennborg <hans@hanshq.net>
Fri, 3 Feb 2012 15:47:04 +0000 (15:47 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 3 Feb 2012 15:47:04 +0000 (15:47 +0000)
commitacbabf177079ed41c055b1484465082f9f1d3d06
tree4034b17c92b7e4b5344412e7dc8ce12557b07003
parent8fbbae532e3cb5f45e9e862c60d48c78b0997325
Don't warn about anonymous struct/union in C11.

Also, in C, call this a C11 extension rather than a GNU extension.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149695 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
test/Sema/anonymous-struct-union-c11.c [new file with mode: 0644]
test/Sema/array-init.c