From patchwork Tue Apr 4 19:00:38 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: 67283 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 3009D3858407 for ; Tue, 4 Apr 2023 19:01:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3009D3858407 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1680634879; bh=6tT7t1ejThGiZB4JugWP5wgOXIovXlLTUbbZQT5uq+4=; 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=q4LtA8TnyLeqZHF6No/NylQwUVVenP1A5+BD78wleSfiT/K1o/DSkDZmh24ee2vb0 UE8oJKVtuXGey5pjVotm5lQOUV5QV6MZ9O/8YUnLmrQbrmY5e+hf/WFndcaYz0HjDG rEy1tPrytGwOFpn7Nxk4+Fcp3an/LQlQskrkbB9Q= 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 D0B2C3858C2C for ; Tue, 4 Apr 2023 19:00:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D0B2C3858C2C Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-341-NwWvzVk6N1alwQ4xYeElug-1; Tue, 04 Apr 2023 15:00:53 -0400 X-MC-Unique: NwWvzVk6N1alwQ4xYeElug-1 Received: by mail-qk1-f198.google.com with SMTP id t23-20020a374617000000b0074a4dba4b5aso2566629qka.16 for ; Tue, 04 Apr 2023 12:00:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680634852; 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=6tT7t1ejThGiZB4JugWP5wgOXIovXlLTUbbZQT5uq+4=; b=KXqp3sM05lm0GPZ5NSy9BHvIrGVr0IQfArQnAdFdTRSrmpjkYuQl5X3rTHRP5YEa0j Q/K+iFju+TxOyhdM5TRG/OMv7MCjekTzFz9HrTGgq8tOAGmMkr+0yKCHe4gzVEnbIOJn IT3MSOdvIDfBnBH2LRLuPjl4Xgn7bnw6lmS3tNA+i0YHAi1sJsLUN7jGGhk+tlOcTsy7 ixpVQunURY13NDBj9ZxeJhcF3FocleKFei5W9DuimYaLy1FJdxzty/Ys0eSrfr5pcsWH GMgyfRDVeyxB549ReC3VavWSE74jrP/6/98B3mn7QpQUfflCrRO5Rq0rSGWui3EzXAoG rIWw== X-Gm-Message-State: AAQBX9efL58MllWwVuW5hLKgrRJA1DjhDs438+f7uYhcTQNSWPwkBW8s v3njA4s7CnjWyQKOpqxeVMAU68Sl4nnMFrtBhDD62ysi02N5TWcoz1RJYXitQvtZ2tdiNtEI34U iGOuJycvwGHDmyqn6mWNf2YzsOhxbSIeYRP1EgFqfcaNm7oqaN/HsV7lRaoOiyJqHhrXg1S7Mp8 9XKHuf X-Received: by 2002:a05:622a:85:b0:3e3:828e:a562 with SMTP id o5-20020a05622a008500b003e3828ea562mr629193qtw.39.1680634851752; Tue, 04 Apr 2023 12:00:51 -0700 (PDT) X-Google-Smtp-Source: AKy350YVfjrtGnJ6pUTYnfSJQDbOR7KPrRawPmPHseJQrlOaet7Huf9rUE4Jl0A4cpZoYV/vIB3z0A== X-Received: by 2002:a05:622a:85:b0:3e3:828e:a562 with SMTP id o5-20020a05622a008500b003e3828ea562mr629152qtw.39.1680634851455; Tue, 04 Apr 2023 12:00:51 -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 b8-20020ac844c8000000b003e4d9c91106sm3434502qto.57.2023.04.04.12.00.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Apr 2023 12:00:51 -0700 (PDT) To: libc-alpha@sourceware.org Cc: Joe Simmons-Talbott Subject: [PATCH v3 1/3] string: Allow use of test-string.h for non-ifunc implementations. Date: Tue, 4 Apr 2023 15:00:38 -0400 Message-Id: <20230404190040.2507343-2-josimmon@redhat.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230404190040.2507343-1-josimmon@redhat.com> References: <20230329150500.2886135-1-josimmon@redhat.com> <20230404190040.2507343-1-josimmon@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.8 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 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 implemenations. 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; \