arkhipenko / TaskScheduler

Cooperative multitasking for Arduino, ESPx, STM32, nRF and other microcontrollers
http://playground.arduino.cc/Code/TaskScheduler
BSD 3-Clause "New" or "Revised" License
1.22k stars 224 forks source link

unused parameter 'aRecursive' #99

Closed FedeBev closed 3 years ago

FedeBev commented 4 years ago

Hi there, thanks for this amazing work!

Compiling without _TASK_PRIORITY, the following warning is thrown (with strict build):

/libraries/TaskScheduler/src/TaskScheduler.h:850:32: warning: unused parameter 'aRecursive' [-Wunused-parameter]
 void Scheduler::startNow( bool aRecursive ) {

I would just use a preprocessor condition here https://github.com/arkhipenko/TaskScheduler/blob/2470286e0ba3f21768c881e7e23dd2f2ac85674f/src/TaskScheduler.h#L805

as few lines below https://github.com/arkhipenko/TaskScheduler/blob/2470286e0ba3f21768c881e7e23dd2f2ac85674f/src/TaskScheduler.h#L812-L814

arkhipenko commented 4 years ago

Pushed fix to the testing branch - please test if you have time.