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

Fix compiler warnings #17

Open
ttlappalainen opened this issue Jun 12, 2017 · 0 comments
Open

Fix compiler warnings #17

ttlappalainen opened this issue Jun 12, 2017 · 0 comments

Comments

@ttlappalainen
Copy link

I normally prefer to have all warning on during compilation, since some warnings actually may be catastrofig. Could you fix warnings below. You could use e.g.
#ifdef _EEPROMEX_DEBUG
#define _PARAM_allowedWrites allowedWrites
#define _PARAM_address address
#else
#define _PARAM_allowedWrites
#define _PARAM_address
#endif

and then void EEPROMClassEx::setMaxAllowedWrites(int _PARAM_allowedWrites) {


libraries\Arduino-EEPROMEx-master\EEPROMex.cpp:74:45: warning: unused parameter 'allowedWrites' [-Wunused-parameter]
void EEPROMClassEx::setMaxAllowedWrites(int allowedWrites) {

libraries\Arduino-EEPROMEx-master\EEPROMex.cpp:319:35: warning: unused parameter 'address' [-Wunused-parameter]
bool EEPROMClassEx::isWriteOk(int address)

libraries\Arduino-EEPROMEx-master\EEPROMex.cpp:341:34: warning: unused parameter 'address' [-Wunused-parameter]
bool EEPROMClassEx::isReadOk(int address)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant