rakshasa / libtorrent

libTorrent BitTorrent library
http://rtorrent.net/downloads/
GNU General Public License v2.0
892 stars 209 forks source link

Fix all compiler warnings #214

Closed jesec closed 3 years ago

jesec commented 3 years ago

Explicitly handle signed comparison with unsigned is implemented according to existing implicit conversion rules of C++ standard.

No functional change expected.

All tests passed.

OK (10)
PASS: LibTorrent_Test
==================
All 7 tests passed
==================
 Θ clang --version
Ubuntu clang version 11.0.1-++20201103062930+ef4ffcafbb2-1~exp1~20201103053545.129

 Θ CC=clang CXX=clang++ CFLAGS="-Wextra -Werror -Ofast" CXXFLAGS="-Wextra -Werror -Ofast" ./configure