Arduino-EEPROMEx icon indicating copy to clipboard operation
Arduino-EEPROMEx copied to clipboard

Fix compiler warnings

Open ttlappalainen opened this issue 8 years ago • 0 comments

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)

ttlappalainen avatar Jun 12 '17 05:06 ttlappalainen