diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-07-31 21:26:29 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-07-31 21:26:29 -0600 |
commit | fb9dcc629630fe77840574088412eeb12b8d7ddb (patch) | |
tree | bb6735fa053ee26b43c09455eccd20a19fb8b1b6 /bench | |
parent | db019a2c4aa8a7bbfad0dd380717a1d6567d2e82 (diff) | |
download | dimension-fb9dcc629630fe77840574088412eeb12b8d7ddb.tar.xz |
Fix some -W{strict,missing}-prototypes warnings.
Diffstat (limited to 'bench')
-rw-r--r-- | bench/libdimension/array.c | 2 | ||||
-rw-r--r-- | bench/libdimension/geometry.c | 2 | ||||
-rw-r--r-- | bench/libdimension/list.c | 4 | ||||
-rw-r--r-- | bench/libdimension/prtree.c | 10 |
4 files changed, 9 insertions, 9 deletions
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 <stdint.h> 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 <stdlib.h> 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 <stdlib.h> #include <stdint.h> -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 <sandglass.h> #include <stdlib.h> -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; |