From patchwork Mon Feb 27 22:08:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1749172 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=aTa+zcCG; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQZR64hRGz1yXC for ; Tue, 28 Feb 2023 09:09:22 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C15ED85A97; Mon, 27 Feb 2023 23:08:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="aTa+zcCG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C04AF8546E; Mon, 27 Feb 2023 23:08:47 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CE72785A71 for ; Mon, 27 Feb 2023 23:08:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82d.google.com with SMTP id ay9so8446228qtb.9 for ; Mon, 27 Feb 2023 14:08:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1677535722; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=UIfGSwGRnqygde31m8II5NubNkNOnhVX0HYnTwgusU4=; b=aTa+zcCGo1z2JDgfeZ6VPFLqneATBwgLuuc3yOMkIjQLdQHvABlx945OKam2LE798t vwGRx7W6HvQlc5luFZTD3DpkwnpSmcLsLkmVZATSo8ta0YSuOzTslkGXuel065kb/PtU Qv3QkvvvZ9HeIbAyqG3nBEw3ycc7PjEhwmOU0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677535722; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UIfGSwGRnqygde31m8II5NubNkNOnhVX0HYnTwgusU4=; b=6vHSQKeGIGLB3PMyqQDP05FbOqaGtZrjoOfaJah1aQy6EDLi2nMuJ39xBfu9amZDn2 vi+XJ9cq1Plt9Sj8OoqT9VcNMVcemeLTi/k/j4alg5ouvabL3ZzWes+mEMLWPuMn0jNT zD7RInsykQMDfRQMQNUgMYCa9WbXpmBL2S05f86xZ4ZWkZAyho34TkxbSEAm/wubMM2c eGjaULbF2C2epVWTnxDxtPuUsRAttosFdn7ws4q7tJpcQU2/HGF/IPQhl0vcwsF8jK56 cTX58DKcVJ/eqavwdMYsxBZ4vtv5Uhg0GKqGKDShG0AtChHsRMiFJB+Hl01tf48buv4G OWiw== X-Gm-Message-State: AO0yUKUAjF4Q/CFJd5sW68eaW5AXqadm7gwmHUOzro84ujMsXrppWFYg qt2pib3+D8Wr41HGm10Yitl40IDmo2xYb9lIcMo= X-Google-Smtp-Source: AK7set/MBb/oQJFQCl5Bb5Y3w9uYO2uQpS51GYOV5RzklMhMP9EJa5fnNM6Sd+vxMUD/Tj8suzWMXw== X-Received: by 2002:ac8:7f42:0:b0:3b3:7707:9b92 with SMTP id g2-20020ac87f42000000b003b377079b92mr1504496qtk.15.1677535722536; Mon, 27 Feb 2023 14:08:42 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-0000-0000-0000-036b.res6.spectrum.com. [2603:6081:7b00:6400::36b]) by smtp.gmail.com with ESMTPSA id x2-20020ac86b42000000b003b635a5d56csm5375454qts.30.2023.02.27.14.08.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 14:08:42 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 4/7] zlib: trees.c: Fix a warning with clang-15 Date: Mon, 27 Feb 2023 17:08:36 -0500 Message-Id: <20230227220839.2519733-4-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230227220839.2519733-1-trini@konsulko.com> References: <20230227220839.2519733-1-trini@konsulko.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean With clang-15 we now will get warnings such as: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] And it is easy enough to address this warning here, even if we would like to stay in sync more with upstream as it's a single location. Signed-off-by: Tom Rini Reviewed-by: Simon Glass --- lib/zlib/trees.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zlib/trees.c b/lib/zlib/trees.c index 970bc5dbc64e..e040617686a1 100644 --- a/lib/zlib/trees.c +++ b/lib/zlib/trees.c @@ -237,7 +237,7 @@ local void send_bits(s, value, length) /* =========================================================================== * Initialize the various 'constant' tables. */ -local void tr_static_init() +local void tr_static_init(void) { #if defined(GEN_TREES_H) || !defined(STDC) static int static_init_done = 0;