Snippets for apt 3.2.0 from Alpine armv7
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-armv7/community/apt/apt-3.2.0-r0.log.
-
/home/buildozer/aports/community/apt/src/apt-3.2.0/test/interactive-helper/createdeb-cve-2020-27350.cc:285:40: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 285 | snprintf(h.Size, sizeof(h.Size), "%ld", (size_t)512 + 512); | ~~^ ~~~~~~~~~~~~~~~~~ | | | | long int size_t {aka unsigned int} | %d -
/home/buildozer/aports/community/apt/src/apt-3.2.0/test/interactive-helper/createdeb-cve-2020-27350.cc:293:46: warning: format '%lo' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 293 | snprintf(tar->Size, sizeof(tar->Size), "%lo", strlen(control)); | ~~^ ~~~~~~~~~~~~~~~ | | | | | size_t {aka unsigned int} | long unsigned int | %o -
/home/buildozer/aports/community/apt/src/apt-3.2.0/methods/rred.cc:466:91: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 466 | return _error->Error("Parsing patchfile %s failed: Effected lines end %lu is before start %lu", f.Name().c_str(), e, s); | ~~^ ~ | | | | long unsigned int size_t {aka unsigned int} | %u -
/home/buildozer/aports/community/apt/src/apt-3.2.0/methods/rred.cc:466:111: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 466 | return _error->Error("Parsing patchfile %s failed: Effected lines end %lu is before start %lu", f.Name().c_str(), e, s); | ~~^ ~ | | | | long unsigned int size_t {aka unsigned int} | %u -
/home/buildozer/aports/community/apt/src/apt-3.2.0/apt-private/private-history.cc:366:30: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 366 | return _error->Error(_("Transaction ID '%ld' out of bounds."), id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/home/buildozer/aports/community/apt/src/apt-3.2.0/test/interactive-helper/aptwebserver.cc:681:43: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] 681 | strprintf(logfilepath, "%s.client-%lu.log", logfilepath.c_str(), id); | ~~^ ~~ | | | | long unsigned int unsigned int | %u -
/home/buildozer/aports/community/apt/src/apt-3.2.0/methods/connect.cc:593:71: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wformat=] 593 | _error->Error("Can't use user&pass auth as they are too long (%lu and %lu) for the SOCKS5!", Proxy.User.length(), Proxy.Password.length()); | ~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long unsigned int std::__cxx11::basic_string<char>::size_type {aka unsigned int} | %u -
/home/buildozer/aports/community/apt/src/apt-3.2.0/methods/connect.cc:593:79: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wformat=] 593 | _error->Error("Can't use user&pass auth as they are too long (%lu and %lu) for the SOCKS5!", Proxy.User.length(), Proxy.Password.length()); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~ | | | | long unsigned int std::__cxx11::basic_string<char>::size_type {aka unsigned int} | %u -
/home/buildozer/aports/community/apt/src/apt-3.2.0/apt-pkg/contrib/srvrec.cc:88:21: warning: cast from 'unsigned char*' to 'HEADER*' increases required alignment of target type [-Wcast-align] 88 | HEADER *header = (HEADER*)answer; | ^~~~~~~~~~~~~~~ -
/home/buildozer/aports/community/apt/src/apt-3.2.0/apt-private/private-output.cc:961:34: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 961 | ioprintf(out, outVer < 30 ? _("%lu to remove and %lu not upgraded.\n") : _("Removing: %lu, Not Upgrading: %lu\n"), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/home/buildozer/aports/community/apt/src/apt-3.2.0/apt-private/private-output.cc:961:79: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 961 | ioprintf(out, outVer < 30 ? _("%lu to remove and %lu not upgraded.\n") : _("Removing: %lu, Not Upgrading: %lu\n"), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/home/buildozer/aports/community/apt/src/apt-3.2.0/apt-pkg/contrib/fileutl.cc:87:5: warning: '__gnu_linux__' is not defined, evaluates to '0' [-Wundef] 87 | #if __gnu_linux__ | ^~~~~~~~~~~~~ -
/home/buildozer/aports/community/apt/src/apt-3.2.0/apt-pkg/contrib/fileutl.cc:3282:5: warning: '__gnu_linux__' is not defined, evaluates to '0' [-Wundef] 3282 | #if __gnu_linux__ | ^~~~~~~~~~~~~ -
/home/buildozer/aports/community/apt/src/apt-3.2.0/apt-pkg/contrib/fileutl.cc:1872:37: warning: narrowing conversion of '((ZstdFileFdPrivate*)this)->ZstdFileFdPrivate::zstd_buffer.simple_buffer::size()' from 'long long unsigned int' to 'size_t' {aka 'unsigned int'} [-Wnarrowing] 1872 | .size = zstd_buffer.size(), | ~~~~~~~~~~~~~~~~^~ -
/home/buildozer/aports/community/apt/src/apt-3.2.0/apt-pkg/contrib/fileutl.cc:1877:21: warning: narrowing conversion of '(long long unsigned int)Size' from 'long long unsigned int' to 'size_t' {aka 'unsigned int'} [-Wnarrowing] 1877 | .size = Size, | ^~~~ -
/home/buildozer/aports/community/apt/src/apt-3.2.0/apt-pkg/contrib/fileutl.cc:1915:18: warning: narrowing conversion of '(long long unsigned int)Size' from 'long long unsigned int' to 'size_t' {aka 'unsigned int'} [-Wnarrowing] 1915 | .size = Size, | ^~~~ -
/home/buildozer/aports/community/apt/src/apt-3.2.0/apt-pkg/contrib/fileutl.cc:3448:25: warning: unused parameter 'what' [-Wunused-parameter] 3448 | int Inhibit(const char *what, const char *who, const char *why, const char *mode) /*{{{*/ | ~~~~~~~~~~~~^~~~ -
/home/buildozer/aports/community/apt/src/apt-3.2.0/apt-pkg/contrib/fileutl.cc:3448:43: warning: unused parameter 'who' [-Wunused-parameter] 3448 | int Inhibit(const char *what, const char *who, const char *why, const char *mode) /*{{{*/ | ~~~~~~~~~~~~^~~ -
/home/buildozer/aports/community/apt/src/apt-3.2.0/apt-pkg/contrib/fileutl.cc:3448:60: warning: unused parameter 'why' [-Wunused-parameter] 3448 | int Inhibit(const char *what, const char *who, const char *why, const char *mode) /*{{{*/ | ~~~~~~~~~~~~^~~ -
/home/buildozer/aports/community/apt/src/apt-3.2.0/apt-pkg/contrib/fileutl.cc:3448:77: warning: unused parameter 'mode' [-Wunused-parameter] 3448 | int Inhibit(const char *what, const char *who, const char *why, const char *mode) /*{{{*/ | ~~~~~~~~~~~~^~~~ -
/home/buildozer/aports/community/apt/src/apt-3.2.0/apt-pkg/deb/dpkgpm.cc:1692:81: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'std::vector<pkgDPkgPM::DpkgState>::size_type' {aka 'unsigned int'} [-Wformat=] 1692 | _error->Warning("Unexpected amount of planned ops for package %s: %lu", C.first->Pkg.FullName().c_str(), RemOp.size()); | ~~^ ~~~~~~~~~~~~ | | | | long unsigned int std::vector<pkgDPkgPM::DpkgState>::size_type {aka unsigned int} | %u -
/home/buildozer/aports/community/apt/src/apt-3.2.0/apt-pkg/deb/dpkgpm.cc:1869:75: warning: comparison of integer expressions of different signedness: 'const unsigned int' and 'const int' [-Wsign-compare] 1869 | if (dpkg_recursive_install == true && dpkg_recursive_install_min < installsToDo) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ -
/home/buildozer/aports/community/apt/src/apt-3.2.0/apt-pkg/acquire-item.cc:2697:36: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vector<DiffInfo>::size_type' {aka 'unsigned int'} [-Wformat=] 2697 | strprintf(ErrorText, "Need %lu diffs, but limit is %lu", available_patches.size(), fileLimit); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long unsigned int std::vector<DiffInfo>::size_type {aka unsigned int} | %u