From unknown Fri Aug 15 12:54:50 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#33218 <33218@debbugs.gnu.org> To: bug#33218 <33218@debbugs.gnu.org> Subject: Status: Updated dfa.c: unused function charclass_context Reply-To: bug#33218 <33218@debbugs.gnu.org> Date: Fri, 15 Aug 2025 19:54:50 +0000 retitle 33218 Updated dfa.c: unused function charclass_context reassign 33218 grep submitter 33218 Arnold Robbins severity 33218 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 31 15:54:01 2018 Received: (at submit) by debbugs.gnu.org; 31 Oct 2018 19:54:01 +0000 Received: from localhost ([127.0.0.1]:57469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHwYz-0000w5-56 for submit@debbugs.gnu.org; Wed, 31 Oct 2018 15:54:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHwYx-0000vs-QY for submit@debbugs.gnu.org; Wed, 31 Oct 2018 15:54:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHwYo-0008Fd-LD for submit@debbugs.gnu.org; Wed, 31 Oct 2018 15:53:54 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_MANY_HDRS_LCASE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42502) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gHwYo-0008FL-GG for submit@debbugs.gnu.org; Wed, 31 Oct 2018 15:53:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54315) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHwYn-0004HS-JO for bug-grep@gnu.org; Wed, 31 Oct 2018 15:53:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHwYh-00088z-R8 for bug-grep@gnu.org; Wed, 31 Oct 2018 15:53:49 -0400 Received: from mxout3.netvision.net.il ([194.90.6.2]:37196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHwYe-00084K-OG for bug-grep@gnu.org; Wed, 31 Oct 2018 15:53:42 -0400 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from skeeve.com ([89.139.110.162]) by mxout3.netvision.net.il (Oracle Communications Messaging Server 8.0.2.1.20180104 64bit (built Jan 4 2018)) with ESMTPSA id <0PHH00EMOB992P40@mxout3.netvision.net.il> for bug-grep@gnu.org; Wed, 31 Oct 2018 21:53:34 +0200 (IST) Received: from skeeve.com (skeeve.com [127.0.0.1]) by skeeve.com (8.15.2/8.15.2/Debian-3) with ESMTP id w9VJrVAr012435 for ; Wed, 31 Oct 2018 21:53:32 +0200 Received: (from arnold@localhost) by skeeve.com (8.15.2/8.15.2/Submit) id w9VJrThP012434 for bug-grep@gnu.org; Wed, 31 Oct 2018 21:53:30 +0200 From: Arnold Robbins Message-id: <201810311953.w9VJrThP012434@skeeve.com> Date: Wed, 31 Oct 2018 21:53:29 +0200 To: bug-grep@gnu.org Subject: Updated dfa.c: unused function charclass_context User-Agent: Heirloom mailx 12.5 6/20/10 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hi. I have merged the latest dfa.c into gawk. When I compile it, I get the following warning: dfa.c:2352:1: warning: 'charclass_context' defined but not used [-Wunused-function] And indeed, the function isn't used. So I have removed it. Thanks, Arnold ---------------------- diff --git a/support/dfa.c b/support/dfa.c index 71c350e..0f0a661 100644 --- a/support/dfa.c +++ b/support/dfa.c @@ -2345,27 +2345,6 @@ epsclosure (struct dfa const *d) free (tmp.elems); } -/* Returns the set of contexts for which there is at least one - character included in C. */ - -static int -charclass_context (struct dfa const *dfa, charclass const *c) -{ - int context = 0; - - for (unsigned int j = 0; j < CHARCLASS_WORDS; ++j) - { - if (c->w[j] & dfa->syntax.newline.w[j]) - context |= CTX_NEWLINE; - if (c->w[j] & dfa->syntax.letters.w[j]) - context |= CTX_LETTER; - if (c->w[j] & ~(dfa->syntax.letters.w[j] | dfa->syntax.newline.w[j])) - context |= CTX_NONE; - } - - return context; -} - /* Returns the contexts on which the position set S depends. Each context in the set of returned contexts (let's call it SC) may have a different follow set than other contexts in SC, and also different from the From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 01 20:27:27 2020 Received: (at 33218-done) by debbugs.gnu.org; 2 Jan 2020 01:27:27 +0000 Received: from localhost ([127.0.0.1]:37873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1impGp-0006ka-C0 for submit@debbugs.gnu.org; Wed, 01 Jan 2020 20:27:27 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:39868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1impGn-0006kN-DN for 33218-done@debbugs.gnu.org; Wed, 01 Jan 2020 20:27:26 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5F821160052; Wed, 1 Jan 2020 17:27:19 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id FE-KsAqFtVFR; Wed, 1 Jan 2020 17:27:18 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B4D98160054; Wed, 1 Jan 2020 17:27:18 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id UO0hCUWErqsj; Wed, 1 Jan 2020 17:27:18 -0800 (PST) Received: from [192.168.1.10] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 8DF36160052; Wed, 1 Jan 2020 17:27:18 -0800 (PST) To: Arnold Robbins From: Paul Eggert Subject: Re: Updated dfa.c: unused function charclass_context Organization: UCLA Computer Science Department Message-ID: <3c562b7f-80fc-c93e-1376-f3e119564971@cs.ucla.edu> Date: Wed, 1 Jan 2020 17:27:18 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33218-done Cc: 33218-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Bug#33218 dated 2018-10-31 seems to have been fixed by Jim Meyering in Gnulib commit 95cd86dd7aa4425037b9c710f88fd59e38601ff1 (2018-12-15 18:09:35 UTC) and then fixed in a different way since then, so I'm closing this old bug report. From unknown Fri Aug 15 12:54:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 30 Jan 2020 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator