mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
Everywhere: Add braces to aggregate initializers
This fixes a couple of warnings emitted by Clang.
This commit is contained in:
parent
98260c5862
commit
2db4709c0c
3 changed files with 4 additions and 4 deletions
|
@ -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)
|
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
|
DebugInfo::SourcePositionWithInlines DebugInfo::get_source_position_with_inlines(u32 address) const
|
||||||
|
|
|
@ -25,13 +25,13 @@ Value evaluate(ReadonlyBytes bytes, [[maybe_unused]] PtraceRegisters const& regs
|
||||||
case Operations::RegEbp: {
|
case Operations::RegEbp: {
|
||||||
ssize_t offset = 0;
|
ssize_t offset = 0;
|
||||||
stream.read_LEB128_signed(offset);
|
stream.read_LEB128_signed(offset);
|
||||||
return Value { Type::UnsignedIntetger, regs.ebp + offset };
|
return Value { Type::UnsignedIntetger, { regs.ebp + offset } };
|
||||||
}
|
}
|
||||||
|
|
||||||
case Operations::FbReg: {
|
case Operations::FbReg: {
|
||||||
ssize_t offset = 0;
|
ssize_t offset = 0;
|
||||||
stream.read_LEB128_signed(offset);
|
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
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ private:
|
||||||
0xe914,
|
0xe914,
|
||||||
// 224.0.0.251
|
// 224.0.0.251
|
||||||
{ 0xfb0000e0 },
|
{ 0xfb0000e0 },
|
||||||
0
|
{ 0 }
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue