Explorar o código

Everywhere: Add braces to aggregate initializers

This fixes a couple of warnings emitted by Clang.
Daniel Bertalan %!s(int64=4) %!d(string=hai) anos
pai
achega
2db4709c0c

+ 1 - 1
Userland/Libraries/LibDebug/DebugInfo.cpp

@@ -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

+ 2 - 2
Userland/Libraries/LibDebug/Dwarf/Expression.cpp

@@ -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
 

+ 1 - 1
Userland/Services/LookupServer/MulticastDNS.h

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