Skip to content

Commit 84bee6f

Browse files
committed
[EEPROM] Fix warnings
type qualifiers ignored on function return type [-Wignored-qualifiers] Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 7c11051 commit 84bee6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/EEPROM/src/EEPROM.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct EERef{
3838

3939
//Access/read members.
4040
uint8_t operator*() const { return eeprom_read_byte( /*(uint8_t*)*/ index ); }
41-
operator const uint8_t() const { return **this; }
41+
operator uint8_t() const { return **this; }
4242

4343
//Assignment/write members.
4444
EERef &operator=( const EERef &ref ) { return *this = *ref; }
@@ -87,7 +87,7 @@ struct EEPtr{
8787
EEPtr( const int index )
8888
: index( index ) {}
8989

90-
operator const int() const { return index; }
90+
operator int() const { return index; }
9191
EEPtr &operator=( int in ) { return index = in, *this; }
9292

9393
//Iterator functionality.

0 commit comments

Comments
 (0)