Message ID | 20230410155934.3503627-2-josimmon@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org> 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=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=MFDFaGv8; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PwDFX40XVz1yZP for <incoming@patchwork.ozlabs.org>; Tue, 11 Apr 2023 02:00:00 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5F6003857714 for <incoming@patchwork.ozlabs.org>; Mon, 10 Apr 2023 15:59:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5F6003857714 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1681142398; bh=jgilcCbCl+XdzV5Ey4xrRVJ3KgN0O+5U6u0PYjsdDdM=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=MFDFaGv8/qH8PIpvEBMYCt/zNwTkstkttqTae7Ls+gPb0zhGQZ+3P7iz20hzjvu6B RriNQtUb9SKN8+V6IZeOQ6eeYiD1H+imIQolIaMRpwPK1llVUgZ1ezXNmnobbNTDBL s8EnmUNrdUlOf6dUMBJi+WfpVi6A2gwWE7MCkUg8= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id EA9473858C62 for <libc-alpha@sourceware.org>; Mon, 10 Apr 2023 15:59:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EA9473858C62 Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-397-dXX1elrePcmE5CJhqkZzGw-1; Mon, 10 Apr 2023 11:59:42 -0400 X-MC-Unique: dXX1elrePcmE5CJhqkZzGw-1 Received: by mail-qt1-f199.google.com with SMTP id t30-20020a05622a181e00b003e37dd114e3so4489117qtc.10 for <libc-alpha@sourceware.org>; Mon, 10 Apr 2023 08:59:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681142382; x=1683734382; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jgilcCbCl+XdzV5Ey4xrRVJ3KgN0O+5U6u0PYjsdDdM=; b=6+qV/mcZG0YF10r5r+tqG4CEd6+xJyW4MYvbbImlJ4OrHdfGDWNNYyI1fG3Dpo2GwU NxyBbuqGcdH0eEEWi8hySdakNM1oJdqgnYdI4mJ7SgbD1kkNDqaTAoJVzueWOxZqe/jx nLuxHas3/6Bia+KUDpIZG+Xv2S2zQHhl+3DLeFFxJ4QgFixfqSB7/84QUPRN7V7rZJdB YROegZe2fn+qS0B1V29uD5yQuHs8Ypd9RGCfEG7GmcEeebLKZDNS5qiGS4jiJ5fQRxGD b4nRGOmeh7H865WZFX6FchMQV850EVuI4r3blKiXM7sjR3joXgQjxNGZ7jVRwLzN2iMF oUbQ== X-Gm-Message-State: AAQBX9dm/R6vig87xqDcnQMe60ypaxJVz8SXdkx0URypbUsJX/qtLh6n FByLht7m0aAX5FgABHDCXNJ6Wy11hUuv4bmrHc+jC/NQbak/UvhAdg0ntnGuSxOrlUOBRMnJkLv OxjFIUVaOf8PLpn2UjMmmbFMn22Btvxdc83/ws//S9rvJkVZRc4ujk1F6fLaJngfYEMWXPyY03b reA7+L X-Received: by 2002:ad4:594e:0:b0:5e0:6931:3b8 with SMTP id eo14-20020ad4594e000000b005e0693103b8mr20160655qvb.2.1681142381845; Mon, 10 Apr 2023 08:59:41 -0700 (PDT) X-Google-Smtp-Source: AKy350bapGxJFkyaOohnseuNLJmld2O4jjAzUy0VOgTrZKe5fxVMBzixPiUY9OrX29XgoWvM9HfW8g== X-Received: by 2002:ad4:594e:0:b0:5e0:6931:3b8 with SMTP id eo14-20020ad4594e000000b005e0693103b8mr20160627qvb.2.1681142381455; Mon, 10 Apr 2023 08:59:41 -0700 (PDT) Received: from oak.redhat.com (c-71-206-142-238.hsd1.va.comcast.net. [71.206.142.238]) by smtp.gmail.com with ESMTPSA id h2-20020ad45442000000b005dd8b9345e0sm3470413qvt.120.2023.04.10.08.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Apr 2023 08:59:41 -0700 (PDT) To: libc-alpha@sourceware.org Cc: Joe Simmons-Talbott <josimmon@redhat.com>, Adhemerval Zanella <adhemerval.zanella@linaro.org> Subject: [PATCH v4 1/4] string: Allow use of test-string.h for non-ifunc implementations. Date: Mon, 10 Apr 2023 11:59:31 -0400 Message-Id: <20230410155934.3503627-2-josimmon@redhat.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230410155934.3503627-1-josimmon@redhat.com> References: <20230329150500.2886135-1-josimmon@redhat.com> <20230410155934.3503627-1-josimmon@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Joe Simmons-Talbott via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Joe Simmons-Talbott <josimmon@redhat.com> Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org> |
Series |
string: Add tests for strdup and strndup (BZ #30266)
|
expand
|
diff --git a/string/test-string.h b/string/test-string.h index 41de973479..8bcb8afd0a 100644 --- a/string/test-string.h +++ b/string/test-string.h @@ -130,8 +130,8 @@ cmdline_process_function (int c) /* Increase size of FUNC_LIST if assert is triggered at run-time. */ static struct libc_ifunc_impl func_list[32]; static int func_count; -static int impl_count = -1; -static impl_t *impl_array; +static int impl_count __attribute__ ((unused)) = -1; +static impl_t *impl_array __attribute__ ((unused)); # define FOR_EACH_IMPL(impl, notall) \ impl_t *impl; \
Mark two variables as unused to silence warning when using test-string.h for non-ifunc implementations. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> --- string/test-string.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)