From patchwork Mon Jan 6 07:26:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Haehnel X-Patchwork-Id: 2030114 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernkonzept.com header.i=@kernkonzept.com header.a=rsa-sha256 header.s=mx1 header.b=mKVRp3Oq; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=uclibc-ng.org (client-ip=89.238.66.15; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=patchwork.ozlabs.org) Received: from helium.openadk.org (helium.openadk.org [89.238.66.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4YRQhg4s7Fz1yP4 for ; Mon, 6 Jan 2025 18:26:11 +1100 (AEDT) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 4DC733520824; Mon, 6 Jan 2025 08:26:03 +0100 (CET) Authentication-Results: helium.openadk.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernkonzept.com header.i=@kernkonzept.com header.a=rsa-sha256 header.s=mx1 header.b=mKVRp3Oq; dkim-atps=neutral Received: from mx.kernkonzept.com (serv1.kernkonzept.com [159.69.200.6]) by helium.openadk.org (Postfix) with ESMTPS id 04DE8352081C for ; Mon, 6 Jan 2025 08:25:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kernkonzept.com; s=mx1; h=Content-Transfer-Encoding:MIME-Version:Message-ID :Date:Subject:Cc:To:From:References:In-Reply-To:Reply-To:Content-Type: Content-ID:Content-Description; bh=dm0obay7JsNWRtW3PIn82dfqI6e5rQNWDAXcTGrP6so=; b=mKVRp3OqSyBS7TZfzUM3ZGSvbL RJwbS7g9BQo32DpwmjV4D4ryPr8EeCdlFvX7ctNhJzVrttBRE9p1LUieMDV+T7OqhnKAjv1qOBEoq wV0+/s63wLf3zcmMaGh7zT3YI+vlXUo9FS41bZlxOxnSZ/3exakZ7fi45ON8SDh83BnloL4Nhlz5k egdHYVzgp3T3w4zj3t1nz7/leDvMwXJF+niExC9pwn2Afm92/2/6xBPl0AN54xT6I/jwFCt9at5ba ppOVFMco/jealUrkGkEoxmv5nFJzuhTe9giMiJg8D/3XMqX36ZlTRzAwMsouOkaBkdZ81XSlBl4bD iSqQvpjA==; Received: from [10.22.3.160] (helo=amethyst.dd1.int.kernkonzept.com) by mx.kernkonzept.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) id 1tUhUs-0014n2-0s; Mon, 06 Jan 2025 08:25:58 +0100 From: Marcus Haehnel To: devel@uclibc-ng.org Date: Mon, 6 Jan 2025 08:26:02 +0100 Message-ID: <20250106072611.1060-1-marcus.haehnel@kernkonzept.com> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Message-ID-Hash: I4T5FLGHQAMLG42RA2IGOZB5KHUCKQTE X-Message-ID-Hash: I4T5FLGHQAMLG42RA2IGOZB5KHUCKQTE X-MailFrom: marcus.haehnel@kernkonzept.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Frank Mehnert , Marcus Haehnel X-Mailman-Version: 3.3.3 Precedence: list Subject: [uclibc-ng-devel] [PATCH] uclibc: prevent warning about declaring an unused function List-Id: uClibc-ng Development Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Frank Mehnert Signed-off-by: Marcus Haehnel --- libc/stdlib/stdlib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/stdlib/stdlib.c b/libc/stdlib/stdlib.c index f5936630c..c45dd53a5 100644 --- a/libc/stdlib/stdlib.c +++ b/libc/stdlib/stdlib.c @@ -822,6 +822,7 @@ libc_hidden_def(_stdlib_mb_cur_max) #endif +#if defined(L_mblen) || defined(L_mbtowc) || defined(L_wctomb) #ifdef __UCLIBC_HAS_LOCALE__ /* * The following function return 1 if the encoding is stateful, 0 if stateless. @@ -844,6 +845,7 @@ static __always_inline int is_stateful(unsigned char encoding) #else #define is_stateful(encoding) 0 #endif +#endif /**********************************************************************/ #ifdef L_mblen