]> granicus.if.org Git - clang/commit
Warn on flexible array members when in C89 mode, with -pedantic.
authorDavid Chisnall <csdavec@swan.ac.uk>
Fri, 16 Mar 2012 12:15:37 +0000 (12:15 +0000)
committerDavid Chisnall <csdavec@swan.ac.uk>
Fri, 16 Mar 2012 12:15:37 +0000 (12:15 +0000)
commit0961a01ebec0e31664bfe464bf4a0ac7b0891a1f
tree99f3e36f6dc5c7ceb3b343d5ccbc404d2cad4214
parente55329d6834647ba0e06f8a319e5d84c77310035
Warn on flexible array members when in C89 mode, with -pedantic.
This fixes PR 4307.

Patch by Eitan Adler!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152918 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticParseKinds.td
lib/Sema/SemaDecl.cpp
test/Sema/c89.c