mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 00:33:03 +00:00
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".
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
2012-01-06 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
|
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".
|
||||||
|
|
||||||
2011-08-21 Joel E. Denny <joeldenny@joeldenny.org>
|
2011-08-21 Joel E. Denny <joeldenny@joeldenny.org>
|
||||||
|
|
||||||
lalr1.cc: remove trailing comma from enumerator list.
|
lalr1.cc: remove trailing comma from enumerator list.
|
||||||
|
|||||||
@@ -576,11 +576,9 @@ bitset_stats_list (bitset bset, bitset_bindex *list,
|
|||||||
bitset_bindex tmp;
|
bitset_bindex tmp;
|
||||||
bitset_bindex size;
|
bitset_bindex size;
|
||||||
bitset_bindex i;
|
bitset_bindex i;
|
||||||
enum bitset_type type;
|
|
||||||
|
|
||||||
count = BITSET_LIST_ (bset->s.bset, list, num, next);
|
count = BITSET_LIST_ (bset->s.bset, list, num, next);
|
||||||
|
|
||||||
type = BITSET_TYPE_ (bset->s.bset);
|
|
||||||
BITSET_STATS_LISTS_INC (bset->s.bset);
|
BITSET_STATS_LISTS_INC (bset->s.bset);
|
||||||
|
|
||||||
/* Log histogram of number of set bits. */
|
/* Log histogram of number of set bits. */
|
||||||
|
|||||||
@@ -1335,17 +1335,12 @@ ebitset_bytes (bitset_bindex n_bits ATTRIBUTE_UNUSED)
|
|||||||
bitset
|
bitset
|
||||||
ebitset_init (bitset bset, bitset_bindex n_bits)
|
ebitset_init (bitset bset, bitset_bindex n_bits)
|
||||||
{
|
{
|
||||||
bitset_windex size;
|
|
||||||
|
|
||||||
bset->b.vtable = &ebitset_vtable;
|
bset->b.vtable = &ebitset_vtable;
|
||||||
|
|
||||||
bset->b.csize = EBITSET_ELT_WORDS;
|
bset->b.csize = EBITSET_ELT_WORDS;
|
||||||
|
|
||||||
EBITSET_ZERO_SET (bset);
|
EBITSET_ZERO_SET (bset);
|
||||||
|
|
||||||
size = n_bits ? (n_bits + EBITSET_ELT_BITS - 1) / EBITSET_ELT_BITS
|
|
||||||
: EBITSET_INITIAL_SIZE;
|
|
||||||
|
|
||||||
EBITSET_ASIZE (bset) = 0;
|
EBITSET_ASIZE (bset) = 0;
|
||||||
EBITSET_ELTS (bset) = 0;
|
EBITSET_ELTS (bset) = 0;
|
||||||
ebitset_resize (bset, n_bits);
|
ebitset_resize (bset, n_bits);
|
||||||
|
|||||||
@@ -936,17 +936,12 @@ lbitset_ones (bitset dst)
|
|||||||
static void
|
static void
|
||||||
lbitset_not (bitset dst, bitset src)
|
lbitset_not (bitset dst, bitset src)
|
||||||
{
|
{
|
||||||
lbitset_elt *elt;
|
|
||||||
lbitset_elt *selt;
|
lbitset_elt *selt;
|
||||||
lbitset_elt *delt;
|
lbitset_elt *delt;
|
||||||
bitset_windex i;
|
bitset_windex i;
|
||||||
unsigned int j;
|
unsigned int j;
|
||||||
bitset_windex windex;
|
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;
|
windex = (BITSET_SIZE_ (dst) + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS;
|
||||||
|
|
||||||
for (i = 0; i < windex; i += LBITSET_ELT_WORDS)
|
for (i = 0; i < windex; i += LBITSET_ELT_WORDS)
|
||||||
|
|||||||
Reference in New Issue
Block a user