Everywhere: Add braces to aggregate initializers

This fixes a couple of warnings emitted by Clang.
This commit is contained in:
Daniel Bertalan 2021-07-05 19:23:19 +02:00 committed by Gunnar Beutner
parent 98260c5862
commit 2db4709c0c
Notes: sideshowbarker 2024-07-18 10:05:44 +09:00
3 changed files with 4 additions and 4 deletions

View file

@ -383,7 +383,7 @@ Vector<DebugInfo::SourcePosition> DebugInfo::source_lines_in_scope(VariablesScop
DebugInfo::SourcePosition DebugInfo::SourcePosition::from_line_info(Dwarf::LineProgram::LineInfo const& line)
{
return { line.file, line.line, { line.address } };
return { line.file, line.line, line.address };
}
DebugInfo::SourcePositionWithInlines DebugInfo::get_source_position_with_inlines(u32 address) const

View file

@ -25,13 +25,13 @@ Value evaluate(ReadonlyBytes bytes, [[maybe_unused]] PtraceRegisters const& regs
case Operations::RegEbp: {
ssize_t offset = 0;
stream.read_LEB128_signed(offset);
return Value { Type::UnsignedIntetger, regs.ebp + offset };
return Value { Type::UnsignedIntetger, { regs.ebp + offset } };
}
case Operations::FbReg: {
ssize_t offset = 0;
stream.read_LEB128_signed(offset);
return Value { Type::UnsignedIntetger, regs.ebp + 2 * sizeof(size_t) + offset };
return Value { Type::UnsignedIntetger, { regs.ebp + 2 * sizeof(size_t) + offset } };
}
#endif

View file

@ -39,7 +39,7 @@ private:
0xe914,
// 224.0.0.251
{ 0xfb0000e0 },
0
{ 0 }
};
};