Message ID | 20230411190526.2469122-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=8.43.85.97; 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=qzIddp0X; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (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 4PwwKX1c7sz1yZZ for <incoming@patchwork.ozlabs.org>; Wed, 12 Apr 2023 05:05:52 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 250AD385735C for <incoming@patchwork.ozlabs.org>; Tue, 11 Apr 2023 19:05:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 250AD385735C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1681239950; 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=qzIddp0XUG8znMUNmsXDBNHiEbZ0Le8+iC56r/U7gj2y/KxnXwakpu/4rCZ7Mhdra xkwH3QZYDen/EvGetrTJej8sebzjOO5TJbvZysNieoSEaQ3YeW+h7xWM1hz4yGobdS FrBsrtBel6YUegZtNDs0UQGjys8yC3Q/7P1akdGk= 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 767913858D32 for <libc-alpha@sourceware.org>; Tue, 11 Apr 2023 19:05:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 767913858D32 Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-257-wNNpHhUOP3uh_SsHewpmrQ-1; Tue, 11 Apr 2023 15:05:32 -0400 X-MC-Unique: wNNpHhUOP3uh_SsHewpmrQ-1 Received: by mail-qt1-f197.google.com with SMTP id y5-20020a05622a004500b003e3979be6abso6979525qtw.12 for <libc-alpha@sourceware.org>; Tue, 11 Apr 2023 12:05:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681239932; x=1683831932; 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=GJojmm/fgIze46ngqAIOhCzp1atym2h+KhRNKdJrJ8m93K96Qa1sNaCaeYzzi5x03B bMfSO5z4z6gguR1cXrswEwyCmdPXejP+6Z97WhfIL5qKBYoK3PYCiZ7JN1PwlbznfFio iC4mx+ENTgnHKovuKrjjkBXPtJelzkELjdmBaoMlXtHxi0pdO+0l55Z1uebc/4oKvXVn epg6oAyRiROMr+LgK7mjyhOzd0vue77VZUBwhlDYJH3HRfsFjpLwgzTT8YO/7IfMU634 eWaSAowBt6lYi15gu5owAPD/pYpxRUkcyI5tK4feUQiIkdQ18Uh3Tj1LrtgJ1oKDyxUG IMzQ== X-Gm-Message-State: AAQBX9d6KsJR0UucGRybMqGOfw7mQ4++MOUjww2PYwG/eyy6tyPyoIJf dKMz8loPU/bb6KhP0bjTkX7drOFHJfWhhj3sFwQOBTph0c6nAYmwxdcOkb5j3E07PBSRb7aDUjC ILSmoYyDMIKdOhs1aHh7YmldJ+RoDgmO/SZx5LuW1K328Kh+pD17WfZ36HDvoEY0E4FSkJhxeaG WpiXB5 X-Received: by 2002:a05:622a:1b8c:b0:3bf:c665:20fe with SMTP id bp12-20020a05622a1b8c00b003bfc66520femr23143891qtb.22.1681239931912; Tue, 11 Apr 2023 12:05:31 -0700 (PDT) X-Google-Smtp-Source: AKy350b0Y3SKpKPKdAZhiAaMMGbl93p7Cfipgr0hOJsjlTnOvjUMZADxDVB7CsP3x7REecLNW7MRVA== X-Received: by 2002:a05:622a:1b8c:b0:3bf:c665:20fe with SMTP id bp12-20020a05622a1b8c00b003bfc66520femr23143850qtb.22.1681239931565; Tue, 11 Apr 2023 12:05:31 -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 x1-20020ac85381000000b003e014845d9esm3760434qtp.74.2023.04.11.12.05.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 12:05:31 -0700 (PDT) To: libc-alpha@sourceware.org Cc: Joe Simmons-Talbott <josimmon@redhat.com>, Adhemerval Zanella <adhemerval.zanella@linaro.org> Subject: [PATCH v5 1/4] string: Allow use of test-string.h for non-ifunc implementations. Date: Tue, 11 Apr 2023 15:05:23 -0400 Message-Id: <20230411190526.2469122-2-josimmon@redhat.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230411190526.2469122-1-josimmon@redhat.com> References: <20230329150500.2886135-1-josimmon@redhat.com> <20230411190526.2469122-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=-12.0 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(-)