Skip to content

Commit 1467070

Browse files
authored
Merge pull request #2021 from aap-sc/aap-sc/unused_write_warning_fixup
fixed warnings about unused parameter when csrs.h file is included
2 parents 70687cc + 380efd9 commit 1467070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv/csrs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ class inaccessible_csr_t: public csr_t {
973973
virtual void verify_permissions(insn_t insn, bool write) const override;
974974
reg_t read() const noexcept override { return 0; }
975975
protected:
976-
bool unlogged_write(const reg_t val) noexcept override { return false; }
976+
bool unlogged_write(const reg_t UNUSED val) noexcept override { return false; }
977977
};
978978

979979
class vstopi_csr_t: public csr_t {

0 commit comments

Comments
 (0)