diff options
author | Colin Walters <walters@verbum.org> | 2010-12-02 11:34:46 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-12-03 16:03:32 -0500 |
commit | 0007b3ec76bafa732201ad96eccdf8b5626fe3fd (patch) | |
tree | c0208d5ce787e3099f5834742a533b31704783a8 /girepository/cmph/bdz_ph.c | |
parent | 0b00fb76e3de40010b69ca64ab5fa5bf039e7478 (diff) | |
download | gobject-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/bdz_ph.c')
-rwxr-xr-x | girepository/cmph/bdz_ph.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/girepository/cmph/bdz_ph.c b/girepository/cmph/bdz_ph.c index 49cf5646..16257c0f 100755 --- a/girepository/cmph/bdz_ph.c +++ b/girepository/cmph/bdz_ph.c @@ -94,7 +94,7 @@ static void bdz_ph_add_edge(bdz_ph_graph3_t * graph3, cmph_uint32 v0, cmph_uint3 static void bdz_ph_dump_graph(bdz_ph_graph3_t* graph3, cmph_uint32 nedges, cmph_uint32 nvertices) { - int i; + cmph_uint32 i; for(i=0;i<nedges;i++){ printf("\nedge %d %d %d %d ",i,graph3->edges[i].vertices[0], graph3->edges[i].vertices[1],graph3->edges[i].vertices[2]); @@ -202,7 +202,7 @@ static int bdz_ph_mapping(cmph_config_t *mph, bdz_ph_graph3_t* graph3, bdz_ph_qu static void assigning(bdz_ph_config_data_t *bdz_ph, bdz_ph_graph3_t* graph3, bdz_ph_queue_t queue); static void bdz_ph_optimization(bdz_ph_config_data_t *bdz_ph); -bdz_ph_config_data_t *bdz_ph_config_new() +bdz_ph_config_data_t *bdz_ph_config_new(void) { bdz_ph_config_data_t *bdz_ph; bdz_ph = (bdz_ph_config_data_t *)malloc(sizeof(bdz_ph_config_data_t)); |