From adf70fe4bd7fd38884467f9f910867cdd918120b Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Wed, 22 Oct 2025 12:18:09 -0700 Subject: [MachO] Fix GCC build Clang, MSVC and GCC all have different opinions about what's permissible with initialization from a braced initializer list. --- view/macho/chained_fixups.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'view/macho/chained_fixups.cpp') diff --git a/view/macho/chained_fixups.cpp b/view/macho/chained_fixups.cpp index 1860255a..e4e6d160 100644 --- a/view/macho/chained_fixups.cpp +++ b/view/macho/chained_fixups.cpp @@ -39,18 +39,18 @@ namespace { FixupInfo BindFixup(uint32_t ordinal, int32_t addend, uint16_t next) { - return { .bind = { ordinal, addend }, .type = FixupType::Bind, .next = next }; + return FixupInfo{ .bind = { ordinal, addend }, .type = FixupType::Bind, .next = next }; } FixupInfo RebaseFixup(uint64_t target, uint16_t next) { - return { .rebase = { target }, .type = FixupType::Rebase, .next = next }; + return FixupInfo{ .rebase = { target }, .type = FixupType::Rebase, .next = next }; } FixupInfo AuthBindFixup(uint32_t ordinal, AuthKeyType keyType, bool usesAddressDiversity, uint16_t addressDiversity, uint16_t next) { - return { + return FixupInfo{ .bind = { ordinal, 0 }, .type = FixupType::Bind, .isAuthenticated = true, .authKeyType = keyType, .usesAddressDiversity = usesAddressDiversity, .addressDiversity = addressDiversity, .next = next @@ -60,7 +60,7 @@ FixupInfo AuthBindFixup(uint32_t ordinal, FixupInfo AuthRebaseFixup(uint64_t target, AuthKeyType keyType, bool usesAddressDiversity, uint16_t addressDiversity, uint16_t next) { - return { + return FixupInfo{ .rebase = { target }, .type = FixupType::Rebase, .isAuthenticated = true, .authKeyType = keyType, .usesAddressDiversity = usesAddressDiversity, .addressDiversity = addressDiversity, .next = next -- cgit v1.3.1