Skip to content

Compiler warnings when compiling EEPROM.h #3783

@nickgammon

Description

@nickgammon

Under 1.6.4 of the IDE (and reportedly under nightly builds as well) compiling an EEPROM example gives this warning:

In file included from eeprom_get.ino:18:0:
/home/nick/Development/arduino-1.6.4/hardware/arduino/avr/libraries/EEPROM/EEPROM.h:43:30: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     operator const uint8_t() const       { return **this; }
                              ^
/home/nick/Development/arduino-1.6.4/hardware/arduino/avr/libraries/EEPROM/EEPROM.h:92:26: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     operator const int() const          { return index; }
                          ^

To fix, remove the first const from both of those lines.

Metadata

Metadata

Assignees

Labels

Library: EEPROMThe EEPROM Arduino libraryType: DuplicateAnother item already exists for this topicfeature requestA request to make an enhancement (not a bug fix)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions