summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/zero-initializer.c
Commit message (Collapse)AuthorAgeFilesLines
* [Sema] Suppress additional warnings for C's zero initializerPeter Wu2019-07-161-0/+7
| | | | | | | | | | | | | | | | | | Summary: D28148 relaxed some checks for assigning { 0 } to a structure for all C standards, but it failed to handle structures with non-integer subobjects. Relax -Wmissing-braces checks for such structures, and add some additional tests. This fixes PR39931. Patch By: al3xtjames Reviewed By: Lekensteyn Differential Revision: https://reviews.llvm.org/D61838 llvm-svn: 366163
* Suppress -Wmissing-braces warning when aggregate-initializing a struct with ↵Richard Smith2017-10-031-2/+5
| | | | | | | | | | a single field that is itself an aggregate. In C++, such initialization of std::array<T, N> types is guaranteed to work by the standard, is completely idiomatic, and the "suggested" alternative from Clang was technically invalid. llvm-svn: 314838
* [Sema] Suppress warnings for C's zero initializerDaniel Marjamaki2017-09-291-0/+38
Patch by S. Gilles! Differential Revision: https://reviews.llvm.org/D28148 llvm-svn: 314499
OpenPOWER on IntegriCloud