From 64dfca6becd82965793e00c1439f2f62ca260986 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Wed, 19 Apr 2023 14:07:09 -0700 Subject: Partially revert #1326 Apparently GCC still wants the UNUSED. Not sure why CI didn't catch this initially. --- riscv/v_ext_macros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/riscv/v_ext_macros.h b/riscv/v_ext_macros.h index a0d8322..e00b0c0 100644 --- a/riscv/v_ext_macros.h +++ b/riscv/v_ext_macros.h @@ -341,12 +341,12 @@ static inline bool is_aligned(const unsigned val, const unsigned pos) type_usew_t::type vs2 = P.VU.elt::type>(rs2_num, i); #define VV_PARAMS(x) \ - type_sew_t::type &vd = P.VU.elt::type>(rd_num, i, true); \ + type_sew_t::type UNUSED &vd = P.VU.elt::type>(rd_num, i, true); \ type_sew_t::type vs1 = P.VU.elt::type>(rs1_num, i); \ type_sew_t::type UNUSED vs2 = P.VU.elt::type>(rs2_num, i); #define VX_PARAMS(x) \ - type_sew_t::type &vd = P.VU.elt::type>(rd_num, i, true); \ + type_sew_t::type UNUSED &vd = P.VU.elt::type>(rd_num, i, true); \ type_sew_t::type rs1 = (type_sew_t::type)RS1; \ type_sew_t::type UNUSED vs2 = P.VU.elt::type>(rs2_num, i); -- cgit v1.1