Snippets for anope 2.1.4 from Fedora i686
Sourced from https://kojipkgs.fedoraproject.org/packages/anope/2.1.4/8.fc45/data/logs/i686/build.log.
-
/builddir/build/BUILD/anope-2.1.4-build/anope-2.1.4/src/main.cpp:220:22: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 220 | chdir(BinaryDir.c_str()); | ~~~~~^~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/anope-2.1.4-build/anope-2.1.4/src/pipeengine.cpp:60:14: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 60 | write(this->write_pipe, data, sz); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/anope-2.1.4-build/anope-2.1.4/src/sockets.cpp:560:16: warning: ‘MEM[(const struct Socket *)_10].sock’ is used uninitialized [-Wuninitialized] 560 | return sock; | ^~~~ -
/builddir/build/BUILD/anope-2.1.4-build/anope-2.1.4/src/sockets.cpp:560:16: warning: ‘MEM[(const struct Socket *)this_12(D) + 4B].sock’ is used uninitialized [-Wuninitialized] 560 | return sock; | ^~~~ -
/builddir/build/BUILD/anope-2.1.4-build/anope-2.1.4/modules/chanserv/cs_seen.cpp:139:40: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘std::unordered_map<Anope::string, SeenInfo*, Anope::hash_ci, Anope::compare, std::allocator<std::pair<const Anope::string, SeenInfo*> > >::size_type’ {aka ‘unsigned int’} [-Wformat=] 139 | source.Reply(_("%lu nicks are stored in the database, using %.2Lf kB of memory."), database.size(), static_cast<long double>(mem_counter) / 1024); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/anope-2.1.4-build/anope-2.1.4/modules/chanserv/cs_seen.cpp:164:40: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 164 | source.Reply(_("Database cleared, removed %lu nicks that were added after %s."), counter, Anope::strftime(time, source.nc, true).c_str()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/anope-2.1.4-build/anope-2.1.4/modules/global/global.cpp:24:53: warning: ‘this’ pointer is null [-Wnonnull] 24 | if (server != Me && !server->IsJuped()) | ~~~~~~~~~~~~~~~^~ -
/builddir/build/BUILD/anope-2.1.4-build/anope-2.1.4/modules/global/global.cpp:25:39: warning: ‘this’ pointer is null [-Wnonnull] 25 | server->Notice(sender, message); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/anope-2.1.4-build/anope-2.1.4/modules/operserv/os_stats.cpp:176:32: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 176 | source.Reply(_("Users (nick): %lu entries, %lu buckets, longest chain is %zu"), entries, buckets, max_chain); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/anope-2.1.4-build/anope-2.1.4/modules/operserv/os_stats.cpp:176:32: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 176 | source.Reply(_("Users (nick): %lu entries, %lu buckets, longest chain is %zu"), entries, buckets, max_chain); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/anope-2.1.4-build/anope-2.1.4/modules/operserv/os_stats.cpp:181:40: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 181 | source.Reply(_("Users (uid): %lu entries, %lu buckets, longest chain is %zu"), entries, buckets, max_chain); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/anope-2.1.4-build/anope-2.1.4/modules/operserv/os_stats.cpp:181:40: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 181 | source.Reply(_("Users (uid): %lu entries, %lu buckets, longest chain is %zu"), entries, buckets, max_chain); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~