From 17798c60bcc284e45529d6afde11bf59ffc549c8 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Tue, 9 Jun 2020 11:53:59 +0200 Subject: [PATCH] [lldb] Fix -Wmissing-field-initializers in StackFrameList The code is correct without these default values, but it is freaking the compiler out. --- lldb/source/Target/StackFrameList.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/source/Target/StackFrameList.cpp b/lldb/source/Target/StackFrameList.cpp index 8549ac0..e4f5d30 100644 --- a/lldb/source/Target/StackFrameList.cpp +++ b/lldb/source/Target/StackFrameList.cpp @@ -241,8 +241,8 @@ void StackFrameList::GetOnlyConcreteFramesUpTo(uint32_t end_idx, /// callee. struct CallDescriptor { Function *func; - CallEdge::AddrType address_type; - addr_t address; + CallEdge::AddrType address_type = CallEdge::AddrType::Call; + addr_t address = LLDB_INVALID_ADDRESS; }; using CallSequence = std::vector; -- 2.7.4