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

Warning in test/http.cpp while compile #2829

Closed Hentai closed 7 months ago

Hentai commented 7 months ago
[ 83%] Building CXX object test/CMakeFiles/run_all_tests.dir/http.cpp.o
/root/td/test/http.cpp: In member function 'virtual void Test_Http_reader::run()':
/root/td/test/http.cpp:148:7: warning: moving 'a' of type 'td::BufferSlice' to itself [-Wself-move]
  148 |     a = std::move(a);
      |     ~~^~~~~~~~~~~~~~
/root/td/test/http.cpp:148:7: note: remove 'std::move' call
/root/td/test/http.cpp:149:7: warning: moving 'b' of type 'td::BufferSlice' to itself [-Wself-move]
  149 |     b = std::move(b);
      |     ~~^~~~~~~~~~~~~~
/root/td/test/http.cpp:149:7: note: remove 'std::move' call
[ 83%] Building CXX object test/CMakeFiles/run_all_tests.dir/link.cpp.o

Alpine 3.19 Cmake 3.28.4

levlam commented 7 months ago

The diagnostics was added in GCC 13 and must be suppressed in the mentioned place in the same way as it has already been done for similar clang warning..