tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

variable ‘wakeup_in’ set but not used #2532

Closed Sarisan closed 1 year ago

Sarisan commented 1 year ago

I get this compiling telegram-bot-api:

/home/sarisan/Documents/git/telegram-bot-api/td/td/telegram/net/Session.cpp: In member function ‘virtual void td::Session::loop()’:
/home/sarisan/Documents/git/telegram-bot-api/td/td/telegram/net/Session.cpp:1582:10: warning: variable ‘wakeup_in’ set but not used [-Wunused-but-set-variable]
 1582 |   double wakeup_in = 0;
      |          ^~~~~~~~~

Distribution: Debian 12 Compiler: gcc (Debian 12.2.0-14) 12.2.0 td: 66234ae2537a99ec0eaf7b0857245a6e5c2d2bc9

levlam commented 1 year ago

This is just a warning.

Sarisan commented 1 year ago

This is just a warning.

So can you suppress it like you always do?

levlam commented 1 year ago

It was fixed 2 month ago in a05453a2c3dccee96ebc5f35d4038941dc643132, but this is not a reason to update TDLib in Telegram Bot API. You can do this locally after repository clonning.