]> granicus.if.org Git - clang/commitdiff
Explicitly initialize all fields to avoid -Wmissing-field-initializers warning.
authorEli Bendersky <eliben@google.com>
Thu, 12 Jun 2014 15:47:57 +0000 (15:47 +0000)
committerEli Bendersky <eliben@google.com>
Thu, 12 Jun 2014 15:47:57 +0000 (15:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210791 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaStmtAttr.cpp

index e98bbec8eeefda2536c1f246048e2071ff97f4c8..c0b5ede526ce6aebe225db2ba95a61147b876e51 100644 (file)
@@ -128,11 +128,12 @@ CheckForIncompatibleAttributes(Sema &S, SmallVectorImpl<const Attr *> &Attrs) {
     bool ValueIsSet;
     bool Enabled;
     int Value;
-  } Options[] = {
-    {LoopHintAttr::Vectorize, LoopHintAttr::VectorizeWidth},
-    {LoopHintAttr::Interleave, LoopHintAttr::InterleaveCount},
-    {LoopHintAttr::Unroll, LoopHintAttr::UnrollCount}
-  };
+  } Options[] = {{LoopHintAttr::Vectorize, LoopHintAttr::VectorizeWidth, false,
+                  false, false, 0},
+                 {LoopHintAttr::Interleave, LoopHintAttr::InterleaveCount,
+                  false, false, false, 0},
+                 {LoopHintAttr::Unroll, LoopHintAttr::UnrollCount, false, false,
+                  false, 0}};
 
   for (const auto *I : Attrs) {
     const LoopHintAttr *LH = dyn_cast<LoopHintAttr>(I);