From ab024c11d872215abf0de8db4847dae36360e928 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Wed, 16 Apr 2025 15:18:20 -0700 Subject: [PATCH] Remove extra semicolons (-Wpedantic) --- riscv/csrs.cc | 2 +- riscv/triggers.cc | 2 +- riscv/triggers.h | 2 +- softfloat/fall_maxmin.c | 12 ++++++------ 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/riscv/csrs.cc b/riscv/csrs.cc index e47cdd43..27280932 100644 --- a/riscv/csrs.cc +++ b/riscv/csrs.cc @@ -1231,7 +1231,7 @@ hideleg_csr_t::hideleg_csr_t(processor_t* const proc, const reg_t addr, csr_t_p reg_t hideleg_csr_t::read() const noexcept { return masked_csr_t::read() & mideleg->read(); -}; +} hgatp_csr_t::hgatp_csr_t(processor_t* const proc, const reg_t addr): basic_csr_t(proc, addr, 0) { diff --git a/riscv/triggers.cc b/riscv/triggers.cc index e130a87d..e8cdfb7f 100644 --- a/riscv/triggers.cc +++ b/riscv/triggers.cc @@ -675,4 +675,4 @@ reg_t module_t::tinfo_read(unsigned UNUSED index) const noexcept (CSR_TINFO_VERSION_1 << CSR_TINFO_VERSION_OFFSET); } -}; +} diff --git a/riscv/triggers.h b/riscv/triggers.h index 3f1e86f7..60ee5ca2 100644 --- a/riscv/triggers.h +++ b/riscv/triggers.h @@ -301,6 +301,6 @@ private: std::vector triggers; }; -}; +} #endif diff --git a/softfloat/fall_maxmin.c b/softfloat/fall_maxmin.c index 8d1196e3..f1efa87b 100644 --- a/softfloat/fall_maxmin.c +++ b/softfloat/fall_maxmin.c @@ -72,13 +72,13 @@ float ## bits ## _t f ## bits ## _min( float ## bits ## _t a, float ## bits ## _ } \ } -COMPARE_MAX(a, b, 16); -COMPARE_MAX(a, b, 32); -COMPARE_MAX(a, b, 64); +COMPARE_MAX(a, b, 16) +COMPARE_MAX(a, b, 32) +COMPARE_MAX(a, b, 64) -COMPARE_MIN(a, b, 16); -COMPARE_MIN(a, b, 32); -COMPARE_MIN(a, b, 64); +COMPARE_MIN(a, b, 16) +COMPARE_MIN(a, b, 32) +COMPARE_MIN(a, b, 64) bfloat16_t bf16_max( bfloat16_t a, bfloat16_t b ) {