commit:     bb82825c7ad3c00d52f7b2f9df22e05110cd5416
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 28 20:38:16 2025 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Aug 28 20:38:16 2025 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=bb82825c

libq/tree: squelch unused argument warnings

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 libq/tree.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libq/tree.c b/libq/tree.c
index 0a6113f..89393f3 100644
--- a/libq/tree.c
+++ b/libq/tree.c
@@ -1834,6 +1834,8 @@ tree_gtree_read_cb(struct archive *a, void *cctx, const 
void **buf)
        la_int64_t                offset;  /* unused */
        int                       ret;
 
+       (void)a;
+
        ret = archive_read_data_block(ctx->archive, buf, &size, &offset);
        if (ret == ARCHIVE_EOF)
                return 0;
@@ -1847,6 +1849,9 @@ tree_gtree_read_cb(struct archive *a, void *cctx, const 
void **buf)
 static int
 tree_gtree_close_cb(struct archive *a, void *cctx)
 {
+       (void)a;
+       (void)cctx;
+
        /* noop */
        return ARCHIVE_OK;
 }

Reply via email to