]> granicus.if.org Git - clang/commit
Treat discarding array initializer elements as an extwarn (so -pedantic-errors flags...
authorChristopher Lamb <christopher.lamb@gmail.com>
Sun, 2 Dec 2007 08:49:54 +0000 (08:49 +0000)
committerChristopher Lamb <christopher.lamb@gmail.com>
Sun, 2 Dec 2007 08:49:54 +0000 (08:49 +0000)
commitce39faa836d0fe2f3be9ff11865c6433f734b2c6
treefb48b7d58ca89ac9600c97358a8918bdcfc60552
parent8b1be778399741088cd6257964b8cdab8b37e53d
Treat discarding array initializer elements as an extwarn (so -pedantic-errors flags it). Allow CodeGen to truncate the initializer if needed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44518 91177308-0d34-0410-b5e6-96231b3b80d8
CodeGen/CodeGenModule.cpp
include/clang/Basic/DiagnosticKinds.def
test/CodeGen/trunc-array-initializer.c [new file with mode: 0644]