From 247731d4d38f83c1df6b30399246fddba72c5da3 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Fri, 6 May 2016 17:33:09 +0000 Subject: [PATCH] debugserver: fix a couple of -Wmissing-field-initializers warnings Explicitly provide an initializer for the std::vector in the constructed type. Addresses -Wmissing-field-initializers warnings from clang. NFC. llvm-svn: 268758 --- lldb/tools/debugserver/source/RNBRemote.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lldb/tools/debugserver/source/RNBRemote.cpp b/lldb/tools/debugserver/source/RNBRemote.cpp index 8f934cd2daa1..ade2513d65bd 100644 --- a/lldb/tools/debugserver/source/RNBRemote.cpp +++ b/lldb/tools/debugserver/source/RNBRemote.cpp @@ -1227,7 +1227,9 @@ RNBRemote::InitializeRegisters (bool force) register_map_entry_t reg_entry = { regnum++, // register number starts at zero and goes up with no gaps reg_data_offset, // Offset into register context data, no gaps between registers - reg_sets[set].registers[reg] // DNBRegisterInfo + reg_sets[set].registers[reg], // DNBRegisterInfo + {}, + {}, }; name_to_regnum[reg_entry.nub_info.name] = reg_entry.debugserver_regnum;