khoih-prog / TimerInterrupt

This library enables you to use Interrupt from Hardware Timers on an Arduino, such as Nano, UNO, Mega, etc. It now supports 16 ISR-based timers, while consuming only 1 hardware Timer. Timers' interval is very long (ulong millisecs). The most important feature is they're ISR-based timers. Therefore, their executions are not blocked by bad-behaving functions or tasks. This important feature is absolutely necessary for mission-critical tasks.
MIT License
98 stars 11 forks source link

Warnings could be addressed #8

Closed Django0 closed 3 years ago

Django0 commented 3 years ago

It would be nice to have a clean build output. If possible, please fix these warnings:

/root/Arduino/libraries/TimerInterrupt/src/TimerInterrupt.h:249:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     volatile long getCount() __attribute__((always_inline))
     ^~~~~~~~
/root/Arduino/libraries/TimerInterrupt/src/TimerInterrupt.h:265:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     volatile long get_OCRValue() __attribute__((always_inline))
     ^~~~~~~~
/root/Arduino/libraries/TimerInterrupt/src/TimerInterrupt.h:270:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     volatile long get_OCRValueRemaining() __attribute__((always_inline))
     ^~~~~~~~
khoih-prog commented 3 years ago

Done by merging this PR Fixed warnings from cppcheck (platformio) and -Wall arduino-cli from you.

Thanks,