From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 ; Fri, 21 Apr 2023 13:24:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 66BB33858422 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1682083472; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jgilcCbCl+XdzV5Ey4xrRVJ3KgN0O+5U6u0PYjsdDdM=; b=G4e89nbOWF/QfCT+Q8XhT5vZBOgyHu62Pjqi/oeiIDUQ4dfYxgu3qDpvPzatBR8mDlEyH/ ed+MI/fKZfTaWVdUWlBM19SPXv5WY9fRLxVso0gWWsuGwhEBwlC8x/BlTSLRrq+/H8eBbs ClPILjdGw8I/Zb6bfWCzDyQBudf9MWg= 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 ; 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) From: Joe Simmons-Talbott To: libc-alpha@sourceware.org Cc: Joe Simmons-Talbott , Adhemerval Zanella 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 List-Id: Mark two variables as unused to silence warning when using test-string.h for non-ifunc implementations. Reviewed-by: Adhemerval Zanella --- string/test-string.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; \ -- 2.39.2