From patchwork Thu Apr 20 16:54:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Simmons-Talbott X-Patchwork-Id: 68083 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4480F3858433 for ; Thu, 20 Apr 2023 16:57:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4480F3858433 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1682009824; 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=WtdE95BJS210US0Mac3wQlSrZcA9m1wiGeJVCQT9AZGt5h1U4Cw/BL870k5uIev6s gGeBvESkT24+I1wk+pswdG/cSkz79dbIQ74Pe7DYKvFrPKQID+6sDS0Q/hCUo0FmFK HrmbyduZaik/YsPJx5MLpDnN7YAWN4pvsHC8avA0= 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 E6F663857BB2 for ; Thu, 20 Apr 2023 16:55:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E6F663857BB2 Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-531-59OSj_BEOL67rvA8L6AmFw-1; Thu, 20 Apr 2023 12:55:03 -0400 X-MC-Unique: 59OSj_BEOL67rvA8L6AmFw-1 Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-74de74a90e7so128228585a.0 for ; Thu, 20 Apr 2023 09:55:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682009702; x=1684601702; 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=fEH8LDdrm/2mXZkOM4KZwNCphJ1epZBES+GnzY03s+u7dJAFu5lX3BYgPbTGt8RfHI 5sePxHzDeW+97iFaOcLGqSqegn6NV2aHZSRe+WWklfgO5KOOUFG+EiD7zcl/LrFOtCXx /jS1qKgIY5BQU7rxf3b/CWlygm7DRHqLNkRvRbcL2WKJB6cG5QKajgiEC6o3oROvJWWG J7N/EUChR4mmS5HDp9wft4cC+05ZnivBsvNBOvbHgCyeBUcETQAbTdj/rSkSFaqjUN58 30QuCnG+3rs8iRyuNF+AEvZRfT0AdszkliL0/XLl/8IId8hEnWFqIg6k4s3kObMwwpzW /lLg== X-Gm-Message-State: AAQBX9fyrxnKtYPc0StUR6bFVsDglBt2+9g9cl/2wvewHCFkx64xiHiY JHqCFwntayYmpRH1EFevWrWTKvWY8oFsXyMTqQo6YCE4wMIpQu39qiVShTeaIOBEm/WOkDfnGBH SzPGy2KiXFf1YeHYxqowXD/StHWun1XzD9w3pwxhlVKtF66lIIsJ7Tk/s12laJgD8KFsf3/iygC VpMmvh X-Received: by 2002:a05:6214:cae:b0:5a2:abf1:7d33 with SMTP id s14-20020a0562140cae00b005a2abf17d33mr3005411qvs.50.1682009702378; Thu, 20 Apr 2023 09:55:02 -0700 (PDT) X-Google-Smtp-Source: AKy350b9IIjWjowPsnz0QoPfBJAbLXGSB+SntVJLWwTPMN+bo7JbVDdRXkpIyhlj2HzyeP5lrTaNLQ== X-Received: by 2002:a05:6214:cae:b0:5a2:abf1:7d33 with SMTP id s14-20020a0562140cae00b005a2abf17d33mr3005385qvs.50.1682009702081; Thu, 20 Apr 2023 09:55:02 -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 bq12-20020a05620a468c00b0074688c36facsm556496qkb.56.2023.04.20.09.55.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Apr 2023 09:55:01 -0700 (PDT) To: libc-alpha@sourceware.org Cc: Joe Simmons-Talbott , Adhemerval Zanella Subject: [PATCH v6 1/4] string: Allow use of test-string.h for non-ifunc implementations. Date: Thu, 20 Apr 2023 12:54:55 -0400 Message-Id: <20230420165458.2096593-2-josimmon@redhat.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230420165458.2096593-1-josimmon@redhat.com> References: <20230329150500.2886135-1-josimmon@redhat.com> <20230420165458.2096593-1-josimmon@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Joe Simmons-Talbott via Libc-alpha From: Joe Simmons-Talbott Reply-To: Joe Simmons-Talbott Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" 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; \