From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from lists.zx2c4.com (lists.zx2c4.com [165.227.139.114]) by inbox.vuxu.org (Postfix) with ESMTP id B1EA021FFB for ; Sun, 4 Aug 2024 05:19:19 +0200 (CEST) Received: by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 9ca6b3ee; Sun, 4 Aug 2024 03:19:03 +0000 (UTC) Received: from mail.kasad.com (mail.kasad.com [140.82.7.10]) by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTPS id 48451437 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Sun, 4 Aug 2024 03:19:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kasad.com; i=@kasad.com; q=dns/txt; s=mail; t=1722741540; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=tqS+R0ksWC5sT+L+HWkv1yWz3y1ULFeVcsFoZ5qf1Qw=; b=oBr4d2KMOkpmbN4/s87MTv3NmT0sHwP5DiAQlVe2P4j8Rr3UklHrHiAUAvN3q07qrlKug l4njbsJrLPgqprnzlJXclfrjyqo8OuS680lrEiV0FBkLwuIQ1yPDQPUO8I1XiIjLGaB4T4S ml7hMpHeNR/ILx0Ppz4ipSSZ4/nU31HSqN3VBIFg54ivUEUuWmyrb1Iy/a2EScgubvD2U7L JxIXiJxfBYa5gvHqoVqWY/V2LndCXaWI2MW0OdpGQMfqTUaOT+3D3CwX+e8T0+b5tdMGeHX WbpnqVjqo9syOPah07AqWYguwZisSWjq6Zy4YyIKITgeOVAGpu66iOUB5H/A== Received: from Bagel.hsd1.ca.comcast.net.net (unknown [IPv6:2601:644:8301:e800:19d:b583:c65f:e3ba]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by mail.kasad.com (Postfix) with ESMTPSA id 9298B2019C; Sat, 3 Aug 2024 23:19:00 -0400 (EDT) From: Kian Kasad To: cgit@lists.zx2c4.com Cc: Kian Kasad Subject: [PATCH] Fix error caused by missing parameter name Date: Sat, 3 Aug 2024 20:18:36 -0700 Message-ID: <20240804031857.40601-1-kian@kasad.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <1BAC615F-471C-42B2-AABF-32A8D0A4F758@kasad.com> References: <1BAC615F-471C-42B2-AABF-32A8D0A4F758@kasad.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: cgit@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: List for cgit developers and users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cgit-bounces@lists.zx2c4.com Sender: "CGit" This fixes an error which was introduced by 2f50b47c72cbc4270bbd12ae7f520486d5f42736. Git added a new argument to config_fn_t, and it was added to gitconfig_config(), but not named. This causes compile warnings/errors. This commit fixes that by naming the new parameter. --- scan-tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scan-tree.c b/scan-tree.c index 84da86e..d4fecd8 100644 --- a/scan-tree.c +++ b/scan-tree.c @@ -54,7 +54,8 @@ static void scan_tree_repo_config(const char *name, const char *value) config_fn(repo, name, value); } -static int gitconfig_config(const char *key, const char *value, const struct config_context *, void *cb) +static int gitconfig_config(const char *key, const char *value, + const struct config_context *UNUSED, void *cb) { const char *name; -- 2.46.0