summaryrefslogtreecommitdiffstats
path: root/bench/libdimension/prtree.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-07-31 21:26:29 -0600
committerTavian Barnes <tavianator@gmail.com>2010-07-31 21:26:29 -0600
commitfb9dcc629630fe77840574088412eeb12b8d7ddb (patch)
treebb6735fa053ee26b43c09455eccd20a19fb8b1b6 /bench/libdimension/prtree.c
parentdb019a2c4aa8a7bbfad0dd380717a1d6567d2e82 (diff)
downloaddimension-fb9dcc629630fe77840574088412eeb12b8d7ddb.tar.xz
Fix some -W{strict,missing}-prototypes warnings.
Diffstat (limited to 'bench/libdimension/prtree.c')
-rw-r--r--bench/libdimension/prtree.c10
1 files changed, 5 insertions, 5 deletions
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;