diff options
author | Jim Meyering <meyering@redhat.com> | 2012-01-06 13:55:11 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-01-06 14:05:20 +0100 |
commit | 89d4466b6bcd2cf3eb995a087306c01a425bb5c9 (patch) | |
tree | 557e5ccc5434cd441914d51c9a08d790f791b69c /lib | |
parent | f3bd3f7876b4d4c6d22b9590e1a0938ad342c91f (diff) | |
download | bison-89d4466b6bcd2cf3eb995a087306c01a425bb5c9.tar.gz |
build: avoid warnings about set-but-not-used variables
* lib/bitset_stats.c (bitset_stats_list): Remove declaration
and set of unused local, "type".
* lib/ebitset.c (ebitset_init): Likewise, for "size".
* lib/lbitset.c (lbitset_not): Likewise, for "elt".
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bitset_stats.c | 2 | ||||
-rw-r--r-- | lib/ebitset.c | 5 | ||||
-rw-r--r-- | lib/lbitset.c | 5 |
3 files changed, 0 insertions, 12 deletions
diff --git a/lib/bitset_stats.c b/lib/bitset_stats.c index 216bfd92..02d5ba6d 100644 --- a/lib/bitset_stats.c +++ b/lib/bitset_stats.c @@ -576,11 +576,9 @@ bitset_stats_list (bitset bset, bitset_bindex *list, bitset_bindex tmp; bitset_bindex size; bitset_bindex i; - enum bitset_type type; count = BITSET_LIST_ (bset->s.bset, list, num, next); - type = BITSET_TYPE_ (bset->s.bset); BITSET_STATS_LISTS_INC (bset->s.bset); /* Log histogram of number of set bits. */ diff --git a/lib/ebitset.c b/lib/ebitset.c index 390dd0aa..c8bcf42f 100644 --- a/lib/ebitset.c +++ b/lib/ebitset.c @@ -1335,17 +1335,12 @@ ebitset_bytes (bitset_bindex n_bits ATTRIBUTE_UNUSED) bitset ebitset_init (bitset bset, bitset_bindex n_bits) { - bitset_windex size; - bset->b.vtable = &ebitset_vtable; bset->b.csize = EBITSET_ELT_WORDS; EBITSET_ZERO_SET (bset); - size = n_bits ? (n_bits + EBITSET_ELT_BITS - 1) / EBITSET_ELT_BITS - : EBITSET_INITIAL_SIZE; - EBITSET_ASIZE (bset) = 0; EBITSET_ELTS (bset) = 0; ebitset_resize (bset, n_bits); diff --git a/lib/lbitset.c b/lib/lbitset.c index 5922cd20..35854f22 100644 --- a/lib/lbitset.c +++ b/lib/lbitset.c @@ -936,17 +936,12 @@ lbitset_ones (bitset dst) static void lbitset_not (bitset dst, bitset src) { - lbitset_elt *elt; lbitset_elt *selt; lbitset_elt *delt; bitset_windex i; unsigned int j; bitset_windex windex; - /* This is another unfriendly operation for a linked list - bitset! */ - elt = LBITSET_TAIL (dst); - windex = (BITSET_SIZE_ (dst) + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS; for (i = 0; i < windex; i += LBITSET_ELT_WORDS) |