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.129.124]) by sourceware.org (Postfix) with ESMTPS id EA9473858C62 for ; Mon, 10 Apr 2023 15:59:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EA9473858C62 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=1681142383; 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=FWVcIg8R2oF9Q8T8Y/RuTdbb1cT2ovGJo56wthpBbrTixzW0qge+egTuENaIKlP2nlKR0u JXueq9rD93/aI3Y/mVCF3fAlGljZhHGk/8pzmUEQCLD95tp5r1w8ea5QGFFgVC1yzPkpGl yEvMcrtsm37IWjp22Z0h1EwcION4Tt8= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-397-dXX1elrePcmE5CJhqkZzGw-1; Mon, 10 Apr 2023 11:59:42 -0400 X-MC-Unique: dXX1elrePcmE5CJhqkZzGw-1 Received: by mail-qt1-f199.google.com with SMTP id t30-20020a05622a181e00b003e37dd114e3so4489117qtc.10 for ; Mon, 10 Apr 2023 08:59:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681142382; x=1683734382; 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=6+qV/mcZG0YF10r5r+tqG4CEd6+xJyW4MYvbbImlJ4OrHdfGDWNNYyI1fG3Dpo2GwU NxyBbuqGcdH0eEEWi8hySdakNM1oJdqgnYdI4mJ7SgbD1kkNDqaTAoJVzueWOxZqe/jx nLuxHas3/6Bia+KUDpIZG+Xv2S2zQHhl+3DLeFFxJ4QgFixfqSB7/84QUPRN7V7rZJdB YROegZe2fn+qS0B1V29uD5yQuHs8Ypd9RGCfEG7GmcEeebLKZDNS5qiGS4jiJ5fQRxGD b4nRGOmeh7H865WZFX6FchMQV850EVuI4r3blKiXM7sjR3joXgQjxNGZ7jVRwLzN2iMF oUbQ== X-Gm-Message-State: AAQBX9dm/R6vig87xqDcnQMe60ypaxJVz8SXdkx0URypbUsJX/qtLh6n FByLht7m0aAX5FgABHDCXNJ6Wy11hUuv4bmrHc+jC/NQbak/UvhAdg0ntnGuSxOrlUOBRMnJkLv OxjFIUVaOf8PLpn2UjMmmbFMn22Btvxdc83/ws//S9rvJkVZRc4ujk1F6fLaJngfYEMWXPyY03b reA7+L X-Received: by 2002:ad4:594e:0:b0:5e0:6931:3b8 with SMTP id eo14-20020ad4594e000000b005e0693103b8mr20160655qvb.2.1681142381845; Mon, 10 Apr 2023 08:59:41 -0700 (PDT) X-Google-Smtp-Source: AKy350bapGxJFkyaOohnseuNLJmld2O4jjAzUy0VOgTrZKe5fxVMBzixPiUY9OrX29XgoWvM9HfW8g== X-Received: by 2002:ad4:594e:0:b0:5e0:6931:3b8 with SMTP id eo14-20020ad4594e000000b005e0693103b8mr20160627qvb.2.1681142381455; Mon, 10 Apr 2023 08:59:41 -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 h2-20020ad45442000000b005dd8b9345e0sm3470413qvt.120.2023.04.10.08.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Apr 2023 08:59:41 -0700 (PDT) From: Joe Simmons-Talbott To: libc-alpha@sourceware.org Cc: Joe Simmons-Talbott , Adhemerval Zanella Subject: [PATCH v4 1/4] string: Allow use of test-string.h for non-ifunc implementations. Date: Mon, 10 Apr 2023 11:59:31 -0400 Message-Id: <20230410155934.3503627-2-josimmon@redhat.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230410155934.3503627-1-josimmon@redhat.com> References: <20230329150500.2886135-1-josimmon@redhat.com> <20230410155934.3503627-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 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