Skip to content

Commit f091b40

Browse files
[lldb] Fix warnings
This patch fixes: lldb/unittests/DAP/ProtocolTypesTest.cpp:112:67: error: missing field 'adapterData' initializer [-Werror,-Wmissing-field-initializers] lldb/unittests/DAP/ProtocolTypesTest.cpp:571:70: error: missing field 'adapterData' initializer [-Werror,-Wmissing-field-initializers]
1 parent e13cb3e commit f091b40

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lldb/unittests/DAP/ProtocolTypesTest.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ TEST(ProtocolTypesTest, Breakpoint) {
108108
breakpoint.id = 42;
109109
breakpoint.verified = true;
110110
breakpoint.message = "Breakpoint set successfully";
111-
breakpoint.source = Source{"test.cpp", "/path/to/test.cpp", 123,
112-
Source::eSourcePresentationHintNormal};
111+
breakpoint.source =
112+
Source{"test.cpp", "/path/to/test.cpp", 123,
113+
Source::eSourcePresentationHintNormal, std::nullopt};
113114
breakpoint.line = 10;
114115
breakpoint.column = 5;
115116
breakpoint.endLine = 15;
@@ -567,8 +568,9 @@ TEST(ProtocolTypesTest, DisassembledInstruction) {
567568
instruction.instructionBytes = "0F 1F 00";
568569
instruction.instruction = "mov eax, ebx";
569570
instruction.symbol = "main";
570-
instruction.location = Source{"test.cpp", "/path/to/test.cpp", 123,
571-
Source::eSourcePresentationHintNormal};
571+
instruction.location =
572+
Source{"test.cpp", "/path/to/test.cpp", 123,
573+
Source::eSourcePresentationHintNormal, std::nullopt};
572574
instruction.line = 10;
573575
instruction.column = 5;
574576
instruction.endLine = 15;

0 commit comments

Comments
 (0)