apk-tools: fix compilation warning from downstream full print patch
authorChristian Marangi <[email protected]>
Tue, 14 Oct 2025 15:15:07 +0000 (17:15 +0200)
committerChristian Marangi <[email protected]>
Tue, 14 Oct 2025 15:15:07 +0000 (17:15 +0200)
commite408030cecdf1725060aae988915f91ff631260e
treec92879031e06afc31517469e6da71df99b482f61
parent0b116e9d7386b8ec78eed5252b894c4a97341499
apk-tools: fix compilation warning from downstream full print patch

Fix trivial compilation warning caused by downstream full print patch.

../src/app_list.c: In function 'print_full':
../src/app_list.c:85:35: warning: format '%zu' expects argument of type 'size_t', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=]
   85 |         printf("Installed-Size: %zu\n", pkg->installed_size);
      |                                 ~~^     ~~~~~~~~~~~~~~~~~~~
      |                                   |        |
      |                                   |        uint64_t {aka long long unsigned int}
      |                                   unsigned int
      |                                 %llu
../src/app_list.c:86:25: warning: format '%zu' expects argument of type 'size_t', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=]
   86 |         printf("Size: %zu\n", pkg->size);
      |                       ~~^     ~~~~~~~~~
      |                         |        |
      |                         |        uint64_t {aka long long unsigned int}
      |                         unsigned int
      |                       %llu
../src/app_list.c:58:31: warning: unused variable 'd' [-Wunused-variable]
   58 |         struct apk_dependency d;

Remove unused variable and use PRIu64 to handle uint64_t type.

Signed-off-by: Christian Marangi <[email protected]>
package/system/apk/patches/0001-openwrt-move-layer-db-to-temp-folder.patch
package/system/apk/patches/0010-app_list-add-full-print.patch