fabriziop / EEWL

The EEWL library allows to extend the EEPROM life by distributing data writes along a circular buffer.
GNU Lesser General Public License v3.0
10 stars 1 forks source link

Resolve -Wunused-parameter warning #3

Closed r3n33 closed 1 year ago

r3n33 commented 1 year ago

A quick PR to remove an unused variable warning. Thank you for the library!

In file included from /home/renee/redacted.ino:18:0:
/home/renee/Arduino/libraries/EEWL/src/eewl.h: In instantiation of 'EEWL::EEWL(T&, int, int) [with T = application_state_t]':
/home/renee/redacted.ino:194:88:   required from here
/home/renee/Arduino/libraries/EEWL/src/eewl.h:77:33: warning: unused parameter 'data' [-Wunused-parameter]
   template <typename T> EEWL(T &data, int blk_num_, int start_addr_) {
                                 ^~~~