bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 7/7] cex: replace state-item data structures


From: Akim Demaille
Subject: Re: [PATCH 7/7] cex: replace state-item data structures
Date: Fri, 22 May 2020 08:17:14 +0200

FTR, I'm merging these changes in, because bison was not compiling cleanly:

/Users/akim/src/gnu/bison/src/state-item.c:96:1: error: 'hash_pair_remove' 
defined but not used [-Werror=unused-function]
   96 | hash_pair_remove (Hash_table *tab, int key)
      | ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors



diff --git a/src/state-item.c b/src/state-item.c
index 23561e87..2af5400e 100644
--- a/src/state-item.c
+++ b/src/state-item.c
@@ -92,14 +92,6 @@ hash_pair_insert (Hash_table *tab, int key, bitset val)
   assert (res == hp);
 }
 
-static void
-hash_pair_remove (Hash_table *tab, int key)
-{
-  hash_pair probe;
-  probe.key = key;
-  hash_delete (tab, &probe);
-}
-
 /* A state_item from a state's id and the offset of the item within
    the state. */
 state_item *




reply via email to

[Prev in Thread] Current Thread [Next in Thread]