per1234 / PalatisSoftPWM

Software PWM library for Arduino
BSD 3-Clause "New" or "Revised" License
18 stars 5 forks source link

unused parameter compiler warning #3

Closed per1234 closed 8 years ago

per1234 commented 8 years ago
E:\arduino\libraries\PalatisSoftPWM/PalatisSoftPWM.h:1278:8: warning: unused parameter 'mode' [-Wunused-parameter]
   void operator() (const uint8_t mode) const {}
        ^
Palatis commented 8 years ago

ahh...

template <>
struct pinModeStaticExpander < -1 > {
  void operator() (const uint8_t mode) const {}
};

is a "termination specialization".

make it void operator() (const uint8_t) const {} should solve the issue.

per1234 commented 8 years ago

Thanks! Closed via https://github.com/per1234/PalatisSoftPWM/commit/ff5d0f8a2a38f8e977307437b57aa661eceeeddb.