summaryrefslogtreecommitdiff
path: root/girepository/cmph/fch_buckets.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-12-02 11:34:46 -0500
committerColin Walters <walters@verbum.org>2010-12-03 16:03:32 -0500
commit0007b3ec76bafa732201ad96eccdf8b5626fe3fd (patch)
treec0208d5ce787e3099f5834742a533b31704783a8 /girepository/cmph/fch_buckets.c
parent0b00fb76e3de40010b69ca64ab5fa5bf039e7478 (diff)
downloadgobject-introspection-0007b3ec76bafa732201ad96eccdf8b5626fe3fd.tar.gz
cmph: Squash a lot of gcc -Wall compiler warnings
* Functions taking no parameters need to explicitly say (void). * Mark some functions as static that are * Comment out an unused function in bdz.c * Change loop indicies "i" to be unsigned if our limit is unsigned
Diffstat (limited to 'girepository/cmph/fch_buckets.c')
-rw-r--r--girepository/cmph/fch_buckets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/girepository/cmph/fch_buckets.c b/girepository/cmph/fch_buckets.c
index 24b98e67..a588f147 100644
--- a/girepository/cmph/fch_buckets.c
+++ b/girepository/cmph/fch_buckets.c
@@ -172,7 +172,7 @@ cmph_uint32 fch_buckets_get_nbuckets(fch_buckets_t * buckets)
cmph_uint32 * fch_buckets_get_indexes_sorted_by_size(fch_buckets_t * buckets)
{
- int i = 0;
+ cmph_uint32 i = 0;
cmph_uint32 sum = 0, value;
cmph_uint32 *nbuckets_size = (cmph_uint32 *) calloc((size_t)buckets->max_size + 1, sizeof(cmph_uint32));
cmph_uint32 * sorted_indexes = (cmph_uint32 *) calloc((size_t)buckets->nbuckets, sizeof(cmph_uint32));