summaryrefslogtreecommitdiffstats
path: root/bench/libdimension
diff options
context:
space:
mode:
Diffstat (limited to 'bench/libdimension')
-rw-r--r--bench/libdimension/array.c2
-rw-r--r--bench/libdimension/geometry.c2
-rw-r--r--bench/libdimension/list.c4
-rw-r--r--bench/libdimension/prtree.c10
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;