From fb9dcc629630fe77840574088412eeb12b8d7ddb Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 31 Jul 2010 21:26:29 -0600 Subject: Fix some -W{strict,missing}-prototypes warnings. --- bench/libdimension/array.c | 2 +- bench/libdimension/geometry.c | 2 +- bench/libdimension/list.c | 4 ++-- bench/libdimension/prtree.c | 10 +++++----- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'bench') diff --git a/bench/libdimension/array.c b/bench/libdimension/array.c index 30c87e8..2011268 100644 --- a/bench/libdimension/array.c +++ b/bench/libdimension/array.c @@ -23,7 +23,7 @@ #include int -main() +main(void) { const unsigned int count = 32; uint32_t object = 1; diff --git a/bench/libdimension/geometry.c b/bench/libdimension/geometry.c index b844efe..7e34d6d 100644 --- a/bench/libdimension/geometry.c +++ b/bench/libdimension/geometry.c @@ -22,7 +22,7 @@ #include int -main() +main(void) { dmnsn_vector vector, vector2; dmnsn_matrix matrix, matrix2; diff --git a/bench/libdimension/list.c b/bench/libdimension/list.c index 16eb501..56a2181 100644 --- a/bench/libdimension/list.c +++ b/bench/libdimension/list.c @@ -23,7 +23,7 @@ #include #include -bool +static bool dmnsn_comparator(dmnsn_list_iterator *i, dmnsn_list_iterator *j) { uint32_t a, b; @@ -33,7 +33,7 @@ dmnsn_comparator(dmnsn_list_iterator *i, dmnsn_list_iterator *j) } int -main() +main(void) { const size_t count = 32; uint32_t object = 1; diff --git a/bench/libdimension/prtree.c b/bench/libdimension/prtree.c index 749d524..0df0509 100644 --- a/bench/libdimension/prtree.c +++ b/bench/libdimension/prtree.c @@ -21,7 +21,7 @@ #include #include -bool +static bool dmnsn_fake_intersection_fn(const dmnsn_object *object, dmnsn_line line, dmnsn_intersection *intersection) { @@ -29,13 +29,13 @@ dmnsn_fake_intersection_fn(const dmnsn_object *object, dmnsn_line line, return true; } -bool +static bool dmnsn_fake_inside_fn(const dmnsn_object *object, dmnsn_vector point) { return true; } -void +static void dmnsn_randomize_bounding_box(dmnsn_object *object) { dmnsn_vector a, b; @@ -53,7 +53,7 @@ dmnsn_randomize_bounding_box(dmnsn_object *object) } static dmnsn_object * -dmnsn_new_fake_object() +dmnsn_new_fake_object(void) { dmnsn_object *object = dmnsn_new_object(); /* Generate a bounding box in (-1, -1, -1), (1, 1, 1) */ @@ -64,7 +64,7 @@ dmnsn_new_fake_object() } int -main() +main(void) { const size_t nobjects = 128; -- cgit v1.2.3