diff options
author | Roland McGrath <roland@gnu.org> | 1999-05-23 17:38:37 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-05-23 17:38:37 +0000 |
commit | 0a1d1d49377267fafd8ba94231c66233e9d6ad15 (patch) | |
tree | c3af9f32c65dad9e573b2a4944a1c2d68b5d3925 /libstore/stripe.c | |
parent | 944b0b46d7613eeea93b4af6cfb80204ebc37abb (diff) |
1999-05-23 Roland McGrath <roland@baalperazim.frob.com>
* stripe.c (concat_decode): Add __attribute__((unused)) to suppress
warning.
(ileave_decode): Likewise.
Diffstat (limited to 'libstore/stripe.c')
-rw-r--r-- | libstore/stripe.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libstore/stripe.c b/libstore/stripe.c index 5b266865..59fb504e 100644 --- a/libstore/stripe.c +++ b/libstore/stripe.c @@ -1,7 +1,7 @@ /* Striped store backend - Copyright (C) 1996, 1997 Free Software Foundation, Inc. - Written by Miles Bader <miles@gnu.ai.mit.edu> + Copyright (C) 1996,97,99 Free Software Foundation, Inc. + Written by Miles Bader <miles@gnu.org> This file is part of the GNU Hurd. The GNU Hurd is free software; you can redistribute it and/or @@ -90,7 +90,7 @@ ileave_decode (struct store_enc *enc, const struct store_class *const *classes, return EINVAL; else { - int type = enc->ints[enc->cur_int++]; + int type __attribute__((unused)) = enc->ints[enc->cur_int++]; int flags = enc->ints[enc->cur_int++]; int interleave = enc->ints[enc->cur_int++]; int nkids = enc->ints[enc->cur_int++]; @@ -134,7 +134,7 @@ concat_decode (struct store_enc *enc, const struct store_class *const *classes, return EINVAL; else { - int type = enc->ints[enc->cur_int++]; + int type __attribute__((unused)) = enc->ints[enc->cur_int++]; int flags = enc->ints[enc->cur_int++]; int nkids = enc->ints[enc->cur_int++]; struct store *kids[nkids]; @@ -187,7 +187,7 @@ store_ileave_create (struct store *const *stripes, size_t num_stripes, if (stripes[i]->block_size != block_size) end /= (block_size / stripes[i]->block_size); - + if (min_end < 0) min_end = end; else if (min_end > end) |