diff options
author | Colin Walters <walters@verbum.org> | 2010-12-02 11:34:46 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-12-02 12:49:47 -0500 |
commit | 307b703cc160bb4b8681da132b9e51a6497d46f3 (patch) | |
tree | 7c71a795e3a60f3d2ff0b4d9a13fe33870f61483 /girepository/cmph/fch_buckets.c | |
parent | 37fc6ebf24cc0d85de943c4a35840dffebd9ac79 (diff) | |
download | gobject-introspection-307b703cc160bb4b8681da132b9e51a6497d46f3.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.c | 2 |
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)); |