Message ID | 20230421132425.2178020-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=S1GxPKeh; 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 4Q2wHQ2TSSz23tk for <incoming@patchwork.ozlabs.org>; Fri, 21 Apr 2023 23:24:50 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 269333856972 for <incoming@patchwork.ozlabs.org>; Fri, 21 Apr 2023 13:24:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 269333856972 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1682083488; 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=S1GxPKeh53/oShmoNqG397TkiRQHazmqvh8BGPTE2Ue88oz+BBFwuNlA5ZmCj3lju s7gquHpxTmgfbCJwXGXNGJNWnNCGkQ/syenG4kde3BgN6LF/Ro7TF8Tv0kw8awRJcI mty1lYL+FNQzq22/IHfasG/dt07cIoN4jz+l90Ag= 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.133.124]) by sourceware.org (Postfix) with ESMTPS id 66BB33858422 for <libc-alpha@sourceware.org>; Fri, 21 Apr 2023 13:24:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 66BB33858422 Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-42-jBcOx54FM6qZ899eenxTpw-1; Fri, 21 Apr 2023 09:24:30 -0400 X-MC-Unique: jBcOx54FM6qZ899eenxTpw-1 Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-3ef44f554b1so11894731cf.1 for <libc-alpha@sourceware.org>; Fri, 21 Apr 2023 06:24:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682083470; x=1684675470; 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=P9qK9dm+kScIG+5UqM2Zq3btmwCAdHevgBTq/b1KqcABixFZE8Q3IH225SG9BNi067 iHD71mObrMup3SKaxNZlk9hCyAUpT2aH2K7IR69JDREzJF8mdL2eIH+fm4uMgNburWrY C8Vp5Bmcq1HVSKRTjzgcnl4jzAje48icqbVLcX4+uvlr0xsQja0MiVJgNWQsY5zzpx5p 3ORjJI+tsQhKmaM0/qw/K4ApBleMlrWt4neVYnFacvzc+ZbcUtNCyR/OIcyGoaAU3mSY dCpCuD67qYjPSSir1AneEHTm5Y72sjYSZzCrcyGb3n72EmCxuCckiCKgdA9kPzufHT1d 3H1w== X-Gm-Message-State: AAQBX9cTWOrUmUXg2ljTbdQU553Q2hVkEw1WGWdHUVrjIWRjCN341BNu RR7cCyqyKCnJXwffmRi/SblcM4b+FuHb6HqrzWsaB+9FYrDTnWnjg+ny6e+gEYGjJXK4V+3akbI abuvmUCMGoYq3tlSp3DVP4Ld8GGDhxJHMKrB2BVU8F0ETYln4SrsjKXYGTm9ltUa501y443dhSs Yqb1DU X-Received: by 2002:a05:622a:594:b0:3e3:882d:4b47 with SMTP id c20-20020a05622a059400b003e3882d4b47mr7188077qtb.26.1682083470203; Fri, 21 Apr 2023 06:24:30 -0700 (PDT) X-Google-Smtp-Source: AKy350ZeYVaPcGKRbRKw0dK6wf7eeuYKyWaaInsXPNcTcSWKC8w5JFFw4yPsv+oXeZhNCH9OL/yC0w== X-Received: by 2002:a05:622a:594:b0:3e3:882d:4b47 with SMTP id c20-20020a05622a059400b003e3882d4b47mr7188048qtb.26.1682083469907; Fri, 21 Apr 2023 06:24:29 -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 w23-20020ac843d7000000b003d7e923736asm1328458qtn.6.2023.04.21.06.24.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 06:24:28 -0700 (PDT) To: libc-alpha@sourceware.org Cc: Joe Simmons-Talbott <josimmon@redhat.com>, Adhemerval Zanella <adhemerval.zanella@linaro.org> Subject: [PATCH v7 1/4] string: Allow use of test-string.h for non-ifunc implementations. Date: Fri, 21 Apr 2023 09:24:22 -0400 Message-Id: <20230421132425.2178020-2-josimmon@redhat.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230421132425.2178020-1-josimmon@redhat.com> References: <20230329150500.2886135-1-josimmon@redhat.com> <20230421132425.2178020-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, T_SCC_BODY_TEXT_LINE 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(-)