Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Compiler warning: 'uint32_t _task_micros()' defined but not used #133

Closed
numericOverflow opened this issue Dec 31, 2021 · 4 comments
Closed

Comments

@numericOverflow
Copy link

When using this library using Visual Studio Code, the compiler throws a warning about one of the functions:

Compiling .pio\build\nodemcuv2\src\main.master.cpp.o In file included from src\main.master.cpp:117: .pio\libdeps\nodemcuv2\TaskScheduler\src/TaskScheduler.h:280:17: warning: 'uint32_t _task_micros()' defined but not used [-Wunused-function] 280 | static uint32_t _task_micros() {return micros();} | ^~~~~~~~~~~~

2021-12-31_112549

It looks like there's a PR to fix, can you look into fixing this issue?

I'm using the latest TaskScheduler lib version as of today (v3.6.0)

@andriy063
Copy link

The same issue

@abrahmx
Copy link

abrahmx commented Feb 24, 2023

Same issue here
image

@arkhipenko
Copy link
Owner

This is fixed as of 3.8.2

@lexskal
Copy link

lexskal commented Apr 25, 2024

// ------------------ TaskScheduler implementation --------------------

#ifndef _TASK_EXTERNAL_TIME
static uint32_t _task_millis() {return millis();}
//static uint32_t _task_micros() {return micros();}
#endif // _TASK_EXTERNAL_TIME

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants