mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +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
Notes:
sideshowbarker
2024-07-18 10:05:44 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/2db4709c0cf Pull-request: https://github.com/SerenityOS/serenity/pull/8470 Reviewed-by: https://github.com/Dexesttp Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/gunnarbeutner ✅
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)
|
||||
{
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ private:
|
|||
0xe914,
|
||||
// 224.0.0.251
|
||||
{ 0xfb0000e0 },
|
||||
0
|
||||
{ 0 }
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue