From 950d7ab8e06fd88a42fb2a988ebc03cd211ffee0 Mon Sep 17 00:00:00 2001 From: James Fowkes Date: Sat, 6 Oct 2018 08:33:51 +0100 Subject: [PATCH] Silence unused variable warnings when debug is off --- EEPROMex.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/EEPROMex.cpp b/EEPROMex.cpp index 0fdc5e9..d886daa 100644 --- a/EEPROMex.cpp +++ b/EEPROMex.cpp @@ -74,6 +74,8 @@ void EEPROMClassEx::setMemPool(int base, int memSize) { void EEPROMClassEx::setMaxAllowedWrites(int allowedWrites) { #ifdef _EEPROMEX_DEBUG _allowedWrites = allowedWrites; +#else + (void)allowedWrites; #endif } @@ -331,6 +333,8 @@ bool EEPROMClassEx::isWriteOk(int address) } else { return true; } +#else + (void)address; #endif return true; } @@ -347,6 +351,8 @@ bool EEPROMClassEx::isReadOk(int address) } else { return true; } +#else + (void)address; #endif return true; }