This is an automated email from Gerrit.

"Sevan Janiyan <ventur...@geeklan.co.uk>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/8120

-- gerrit

commit fb8ea6c4a3d8ffc6f1512c5568a8ebdbf22bc8d6
Author: Sevan Janiyan <ventur...@geeklan.co.uk>
Date:   Sat Jan 27 21:53:11 2024 +0000

    src/target/riscv: Help older compilers
    
    find members of a union, nested in struct.
    Allows file to be compiled with GCC 4.0
    
    Signed-off-by: Sevan Janiyan <ventur...@geeklan.co.uk>
    Change-Id: Ied68668d3b5f811573a20e11e83aceff268963eb

diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c
index cb8d04f201..5a05c01dff 100644
--- a/src/target/riscv/riscv.c
+++ b/src/target/riscv/riscv.c
@@ -3851,7 +3851,7 @@ int riscv_init_registers(struct target *target)
                .type = REG_TYPE_ARCH_DEFINED,
                .id = "FPU_FD",
                .type_class = REG_TYPE_CLASS_UNION,
-               .reg_type_union = &single_double_union
+               { .reg_type_union = &single_double_union }
        };
        static struct reg_data_type type_uint8 = { .type = REG_TYPE_UINT8, .id 
= "uint8" };
        static struct reg_data_type type_uint16 = { .type = REG_TYPE_UINT16, 
.id = "uint16" };

-- 

Reply via email to