From 9c8a6a1627480b30b54b4ffc691beebb8554e124 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 25 Nov 2022 09:51:25 -0800 Subject: [PATCH] [include-cleaner] Fix a warning This patch fixes: clang-tools-extra/include-cleaner/lib/HTMLReport.cpp:240:51: error: missing field 'Locations' initializer [-Werror,-Wmissing-field-initializers] --- clang-tools-extra/include-cleaner/lib/HTMLReport.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clang-tools-extra/include-cleaner/lib/HTMLReport.cpp b/clang-tools-extra/include-cleaner/lib/HTMLReport.cpp index fc9b00dc572d..cd43a27e5fc5 100644 --- a/clang-tools-extra/include-cleaner/lib/HTMLReport.cpp +++ b/clang-tools-extra/include-cleaner/lib/HTMLReport.cpp @@ -146,11 +146,11 @@ class Reporter { unsigned Offset; RefType Type; Symbol Sym; - SmallVector Locations; - SmallVector
Headers; - SmallVector Includes; - bool Satisfied = false; // Is the include present? - std::string Insert; // If we had no includes, what would we insert? + SmallVector Locations = {}; + SmallVector
Headers = {}; + SmallVector Includes = {}; + bool Satisfied = false; // Is the include present? + std::string Insert = {}; // If we had no includes, what would we insert? }; std::vector Refs; llvm::DenseMap> IncludeRefs;