From 5b9c348ff15cae62404ae9b1edb64b7ab614374b Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Sun, 6 Jan 2019 11:10:05 +0000 Subject: [PATCH] Remove nodiscard instance where we're using the method for cycle/memory accuracy. Signed-off-by: Adrian Conlon --- inc/Processor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/Processor.h b/inc/Processor.h index 4947799..918625b 100644 --- a/inc/Processor.h +++ b/inc/Processor.h @@ -58,7 +58,7 @@ namespace EightBit { uint8_t busRead(register16_t address); virtual uint8_t busRead(); - [[nodiscard]] auto getBytePaged(const uint8_t page, const uint8_t offset) { + auto getBytePaged(const uint8_t page, const uint8_t offset) { return busRead(register16_t(offset, page)); } @@ -66,7 +66,7 @@ namespace EightBit { busWrite(register16_t(offset, page), value); } - [[nodiscard]] auto fetchByte() { + auto fetchByte() { return busRead(PC()++); }