Skip to content

Fix compiler warnings #17

Description

@ttlappalainen

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions