Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence unused variable warnings when debug is off #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions EEPROMex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -331,6 +333,8 @@ bool EEPROMClassEx::isWriteOk(int address)
} else {
return true;
}
#else
(void)address;
#endif
return true;
}
Expand All @@ -347,6 +351,8 @@ bool EEPROMClassEx::isReadOk(int address)
} else {
return true;
}
#else
(void)address;
#endif
return true;
}
Expand Down